diff --git a/webapp/components/view_image.jsx b/webapp/components/view_image.jsx index 04ace6c55c..237d0a6dca 100644 --- a/webapp/components/view_image.jsx +++ b/webapp/components/view_image.jsx @@ -100,7 +100,7 @@ export default class ViewImageModal extends React.Component { this.onModalHidden(); } - if (this.props.fileInfos !== nextProps.fileInfos) { + if (this.props.fileInfos.length !== nextProps.fileInfos.length) { this.setState({ loaded: Utils.fillArray(false, nextProps.fileInfos.length), progress: Utils.fillArray(0, nextProps.fileInfos.length)