From df4b9580d4881741584f15fc17ba33b5a25b4bcc 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) => {