aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShravya Ramesh <shravs1208@gmail.com>2021-06-09 17:00:26 -0700
committerShravya Ramesh <shravs1208@gmail.com>2021-06-09 17:00:26 -0700
commitd1d6556d02f56ca03350e04de7f466fa13c7d96c (patch)
treef2e7a44c34f5877d59e4e27c132d2c1029174000 /src
parent576857b69ddf50afca16a345fb4f26997051681f (diff)
Load tags when item is changed
Diffstat (limited to 'src')
-rw-r--r--src/components/moments/MomentPost.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/moments/MomentPost.tsx b/src/components/moments/MomentPost.tsx
index e744fcd9..b659177d 100644
--- a/src/components/moments/MomentPost.tsx
+++ b/src/components/moments/MomentPost.tsx
@@ -40,7 +40,7 @@ const MomentPost: React.FC<MomentPostProps> = ({item, userXId, screenType}) => {
*/
useEffect(() => {
loadTags();
- }, []);
+ }, [item]);
/*
* Check if loggedInUser has been tagged in the picture and set the id