From cc6ea442ec27b61772bda22353b091bccdda21e2 Mon Sep 17 00:00:00 2001 From: leiDnedyA Date: Tue, 21 May 2024 10:06:30 -0400 Subject: [PATCH] fix: fixed issue with 'no files yet' text not being removed on upload --- templates/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index 91319fa..55ef211 100644 --- a/templates/index.html +++ b/templates/index.html @@ -130,9 +130,8 @@

Uploaded Files:

const intervalID = setInterval( async () => { const response = await fetch(`./session_links?session_id=${sessionID}`); const responseJSON = await response.json(); - console.log(responseJSON); const responseLinks = responseJSON.images; - if (responseLinks > 0) { + if (responseLinks.length > 0) { const noFilesYetText = document.getElementById('no-files-yet'); if (noFilesYetText) { noFilesYetText.remove();