diff --git a/lib/hooks/use-cosmoz-image-viewer.js b/lib/hooks/use-cosmoz-image-viewer.js index eb787ef..3173b15 100644 --- a/lib/hooks/use-cosmoz-image-viewer.js +++ b/lib/hooks/use-cosmoz-image-viewer.js @@ -58,9 +58,10 @@ const onImageError = (e) => { ${renderImage(opts)} `, + empty = [], useCosmozImageViewer = (host) => { const { - images, + images = empty, showZoom, title, downloadFileName = 'archive',