diff options
author | Frederick Muriuki Muriithi | 2025-01-15 15:01:55 -0600 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-01-15 15:01:55 -0600 |
commit | d6b72265d0bc11575eddc88c8b017803e07aec79 (patch) | |
tree | f476c909bb4dc271671a52f6844f8b8cc5184c32 | |
parent | b8726483575707444fd327d641782a09a6a6b27e (diff) | |
download | gn-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.html | 1 |
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(); |