From b65950bb2e12eaafb1c5419737af7e1f94d901f4 Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Fri, 12 May 2017 20:58:41 +0200 Subject: [PATCH] fix #3008 : props was not defined (#3022) --- app/javascript/mastodon/components/media_gallery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/mastodon/components/media_gallery.js b/app/javascript/mastodon/components/media_gallery.js index 92b1825bfb..4395887353 100644 --- a/app/javascript/mastodon/components/media_gallery.js +++ b/app/javascript/mastodon/components/media_gallery.js @@ -135,7 +135,7 @@ class MediaGallery extends React.PureComponent { }; state = { - visible: !props.sensitive + visible: !this.props.sensitive }; handleOpen = (e) => {