mirror of
https://github.com/easydiffusion/easydiffusion.git
synced 2025-06-18 15:57:11 +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
|
||||
}
|
||||
|
||||
if (preview != null) {
|
||||
if (preview) {
|
||||
previewImage.src = `${modifierThumbnailPath}/${preview}`
|
||||
previewImage.setAttribute("preview-type", val)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user