|
|
@ -238,7 +238,6 @@ export default class MediaGallery extends React.PureComponent { |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
componentWillReceiveProps (nextProps) { |
|
|
|
componentWillReceiveProps (nextProps) { |
|
|
|
console.log(nextProps.revealed); |
|
|
|
|
|
|
|
if (!is(nextProps.media, this.props.media) || nextProps.revealed === true) { |
|
|
|
if (!is(nextProps.media, this.props.media) || nextProps.revealed === true) { |
|
|
|
this.setState({ visible: nextProps.revealed === undefined ? (displayMedia !== 'hide_all' && !nextProps.sensitive || displayMedia === 'show_all') : nextProps.revealed }); |
|
|
|
this.setState({ visible: nextProps.revealed === undefined ? (displayMedia !== 'hide_all' && !nextProps.sensitive || displayMedia === 'show_all') : nextProps.revealed }); |
|
|
|
} |
|
|
|
} |
|
|
|