Skip to content

Commit

Permalink
Fixed issue "cannot read $ref of undefined" in getImageUrl helper
Browse files Browse the repository at this point in the history
  • Loading branch information
storkontheroof committed Jan 30, 2019
1 parent a66f58c commit 5185a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/image-url.js
Expand Up @@ -5,7 +5,7 @@ import getNestedObject from './get-nested-object';
export function getImageUrl(imageRef, pageModel, preview) {
// get image reference
let imageUuid;
if (imageRef || imageRef.$ref) {
if (imageRef && imageRef.$ref) {
imageUuid = imageRef.$ref
}

Expand Down

0 comments on commit 5185a6f

Please sign in to comment.