diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 23843003..e2afc16d 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -302,7 +302,7 @@ function showImages(reqBody, res, outputContainer, livePreview) { } if(allHidden === true) { const req = htmlTaskMap.get(parentTaskContainer) - if(!req.isProcessing || req.batchesDone == req.batchCount) {parentTaskContainer.classList.add("displayNone")} + if(!req.isProcessing || req.batchesDone == req.batchCount) {parentTaskContainer.parentNode.removeChild(parentTaskContainer)} } }) })