diff options
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/mail/static/src/components/attachment_viewer/attachment_viewer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/components/attachment_viewer/attachment_viewer.js b/addons/mail/static/src/components/attachment_viewer/attachment_viewer.js index 1cd680df8b0..30755fd916b 100644 --- a/addons/mail/static/src/components/attachment_viewer/attachment_viewer.js +++ b/addons/mail/static/src/components/attachment_viewer/attachment_viewer.js @@ -160,7 +160,7 @@ class AttachmentViewer extends Component { const image = refs[`image_${this.attachmentViewer.attachment.id}`]; if ( this.attachmentViewer.attachment.fileType === 'image' && - !image.complete + (!image || !image.complete) ) { this.attachmentViewer.update({ isImageLoading: true }); } |
