Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit aa3e1d3

Browse files
updated save-remote-images
1 parent 3a778e8 commit aa3e1d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/hooks/save-remote-images.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ module.exports = function (options = []) { // eslint-disable-line no-unused-vars
106106
const mimeType = res.headers['content-type'];
107107
if (mimeType.indexOf('image') !== 0) {
108108
hook.app.error('its not an image');
109+
loading--;
110+
hook.data[field] = null;
111+
return;
109112
// reject(new Error('its not an image'));
110113
}
111114

0 commit comments

Comments
 (0)