diff options
| author | Shravya Ramesh <shravs1208@gmail.com> | 2021-06-22 07:20:37 -0700 |
|---|---|---|
| committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-06-22 07:20:37 -0700 |
| commit | 4ebd761570c174694fe9b006881322695b572eb7 (patch) | |
| tree | f72904f61796aa4e6273665029b366c6cb087a21 /src/components/moments | |
| parent | 17af6485eb251c979430a7953acac34316f03cb4 (diff) | |
Refresh tags after moment edit
Diffstat (limited to 'src/components/moments')
| -rw-r--r-- | src/components/moments/MomentPost.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/moments/MomentPost.tsx b/src/components/moments/MomentPost.tsx index 73c34d39..26490315 100644 --- a/src/components/moments/MomentPost.tsx +++ b/src/components/moments/MomentPost.tsx @@ -80,7 +80,7 @@ const MomentPost: React.FC<MomentPostProps> = ({ loadMomentTags(moment.moment_id).then((response) => { setTags(response ? response : []); }); - }, []); + }, [moment]); /* * Check if loggedInUser has been tagged in the picture and set the id |
