From 7eb29fa91bdd4bf7ec0757d67f61c7ffa447ad31 Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Wed, 14 Dec 2022 16:51:30 +0530 Subject: [PATCH] Fix: errors were overwritten by the time taken in the UI --- ui/media/js/main.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index ebcfcd5b..f21494ba 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -627,7 +627,9 @@ function onTaskCompleted(task, reqBody, instance, outputContainer, stepUpdate) { time /= 1000 if (task.batchesDone == task.batchCount) { - task.outputMsg.innerText = `Processed ${task.numOutputsTotal} images in ${time} seconds` + if (!task.outputMsg.innerText.toLowerCase().includes('error')) { + task.outputMsg.innerText = `Processed ${task.numOutputsTotal} images in ${time} seconds` + } task.progressBar.style.height = "0px" task.progressBar.style.border = "0px solid var(--background-color3)" task.progressBar.classList.remove("active")