forked from extern/easydiffusion
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