From ca9abf3e5a8c80fd49a9e7bb7229262c749bf215 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 3 Oct 2022 10:10:31 -0500 Subject: [PATCH] MediaGallery: fix "Show content" button --- app/soapbox/components/media_gallery.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/soapbox/components/media_gallery.tsx b/app/soapbox/components/media_gallery.tsx index 5d5db8753..dfb9c7df5 100644 --- a/app/soapbox/components/media_gallery.tsx +++ b/app/soapbox/components/media_gallery.tsx @@ -573,6 +573,10 @@ const MediaGallery: React.FC = (props) => { } }, [node.current]); + useEffect(() => { + setVisible(!!props.visible); + }, [props.visible]); + return (