aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-01-15 15:01:55 -0600
committerFrederick Muriuki Muriithi2025-01-15 15:01:55 -0600
commitd6b72265d0bc11575eddc88c8b017803e07aec79 (patch)
treef476c909bb4dc271671a52f6844f8b8cc5184c32
parentb8726483575707444fd327d641782a09a6a6b27e (diff)
downloadgn-uploader-d6b72265d0bc11575eddc88c8b017803e07aec79.tar.gz
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.
-rw-r--r--uploader/templates/phenotypes/add-phenotypes-raw-files.html1
1 files changed, 1 insertions, 0 deletions
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();