about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWonderfall <wonderfall@targaryen.house>2017-05-12 20:58:41 +0200
committerEugen Rochko <eugen@zeonfederated.com>2017-05-12 20:58:41 +0200
commitb65950bb2e12eaafb1c5419737af7e1f94d901f4 (patch)
tree91b769800914965092d27c4c22f3e75e21fad19a
parent0d70fe26590433c06948a2827ea582b53fdfd6a1 (diff)
fix #3008 : props was not defined (#3022)
-rw-r--r--app/javascript/mastodon/components/media_gallery.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/media_gallery.js b/app/javascript/mastodon/components/media_gallery.js
index 92b1825bf..439588735 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) => {