mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-19 08:17:49 +02:00
Don't create thumbnail if preview is undefined (not just null)
This commit is contained in:
parent
084ef5a28c
commit
ec353ba90d
@ -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)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user