Commit 9158d0fd authored by AUTOMATIC1111's avatar AUTOMATIC1111

fix broken generate button if not using live previews

parent 9e4019c5
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment