From 14714b950de538f6f34376a2782eb147e36f3f12 Mon Sep 17 00:00:00 2001 From: patriceac <48073125+patriceac@users.noreply.github.com> Date: Mon, 28 Nov 2022 00:14:12 -0800 Subject: [PATCH] Slight improvement of detection logic --- ui/media/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 5c115554..cfa924cc 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -1050,7 +1050,7 @@ async function stopAllTasks() { function removeTask(taskToRemove) { taskToRemove.remove() - if (document.querySelectorAll('.imageTaskContainer').length === 0) { + if (document.querySelector('.imageTaskContainer') === null) { previewTools.style.display = 'none' initialText.style.display = 'block' }