fix broken generate button if not using live previews

This commit is contained in:
AUTOMATIC1111 2023-08-22 13:54:45 +03:00
parent 9e4019c5ff
commit 9158d0fd12
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ function requestProgress(id_task, progressbarContainer, gallery, atEnd, onProgre
setTitle("");
parentProgressbar.removeChild(divProgress);
if (gallery) gallery.removeChild(livePreview);
if (gallery && livePreview) gallery.removeChild(livePreview);
atEnd();
divProgress = null;