diff --git a/src/image-helpers.js b/src/image-helpers.js index a22ff02af..1c454d077 100644 --- a/src/image-helpers.js +++ b/src/image-helpers.js @@ -19,6 +19,9 @@ export default { * @return {String} The image src for the resized image. */ imageForSize(image, {maxWidth, maxHeight}) { + if (!image) { + return ''; + } const splitUrl = image.src.split('?'); const notQuery = splitUrl[0]; const query = splitUrl[1] ? `?${splitUrl[1]}` : '';