Don't create thumbnail if preview is undefined (not just null)

This commit is contained in:
cmdr2 2023-06-30 09:45:18 +05:30
parent 084ef5a28c
commit ec353ba90d

View File

@ -363,7 +363,7 @@ function changePreviewImages(val) {
preview = previews.landscape preview = previews.landscape
} }
if (preview != null) { if (preview) {
previewImage.src = `${modifierThumbnailPath}/${preview}` previewImage.src = `${modifierThumbnailPath}/${preview}`
previewImage.setAttribute("preview-type", val) previewImage.setAttribute("preview-type", val)
} }