Skip to content

Commit

Permalink
Merge pull request #56 from leiDnedyA/fix/no-files-uploaded
Browse files Browse the repository at this point in the history
fix: fixed issue with 'no files yet' text not being removed on upload
  • Loading branch information
leiDnedyA authored May 21, 2024
2 parents c9afb56 + cc6ea44 commit 6e5a964
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,8 @@ <h2>Uploaded Files:</h2>
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();
Expand Down

0 comments on commit 6e5a964

Please sign in to comment.