Skip to content

Commit

Permalink
fix: component breaks when images is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
cristinecula committed Dec 11, 2023
1 parent d67e019 commit aa1c076
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/hooks/use-cosmoz-image-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ const onImageError = (e) => {
</div>
${renderImage(opts)}
</div>`,
empty = [],
useCosmozImageViewer = (host) => {
const {
images,
images = empty,
showZoom,
title,
downloadFileName = 'archive',
Expand Down

0 comments on commit aa1c076

Please sign in to comment.