From d6b72265d0bc11575eddc88c8b017803e07aec79 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 15 Jan 2025 15:01:55 -0600 Subject: Remove display elements for existing files Remove the display elements for any previously existing files. This ensures that when a file is added/removed, only the actual files that exist are displayed. --- uploader/templates/phenotypes/add-phenotypes-raw-files.html | 1 + 1 file changed, 1 insertion(+) diff --git a/uploader/templates/phenotypes/add-phenotypes-raw-files.html b/uploader/templates/phenotypes/add-phenotypes-raw-files.html index ccdbde5..cb857ac 100644 --- a/uploader/templates/phenotypes/add-phenotypes-raw-files.html +++ b/uploader/templates/phenotypes/add-phenotypes-raw-files.html @@ -502,6 +502,7 @@ var resumableDisplayFiles = (display_area, files) => { files.forEach((file) => { + display_area.find(".file-display").remove(); var display_element = display_area .find(".file-display-template") .clone(); -- cgit v1.2.3