summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/components/view_image.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/components/view_image.jsx b/webapp/components/view_image.jsx
index 04ace6c55..237d0a6dc 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)