]> cat aescling's git repositories - mastodon.git/commitdiff
fix #3008 : props was not defined (#3022)
authorWonderfall <wonderfall@targaryen.house>
Fri, 12 May 2017 18:58:41 +0000 (20:58 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 12 May 2017 18:58:41 +0000 (20:58 +0200)
app/javascript/mastodon/components/media_gallery.js

index 92b1825bfb5e353a44acf0c773e91c01b7f82bfa..43958873530523413864b4a048d203d3db10f1b5 100644 (file)
@@ -135,7 +135,7 @@ class MediaGallery extends React.PureComponent {
   };
 
   state = {
-    visible: !props.sensitive
+    visible: !this.props.sensitive
   };
 
   handleOpen = (e) => {