aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-04-21 17:10:59 -0500
committerFrederick Muriuki Muriithi2025-04-21 17:10:59 -0500
commit57f2fc25c6ec53d19bdf5c00407c88cab1152b90 (patch)
treeedcb8c01a81739ae03587793cc13117a2bb3936a
parentcafb1ac5bc86c4fa77f53f4dcfcaa2c0d726a3c7 (diff)
downloadgn-uploader-57f2fc25c6ec53d19bdf5c00407c88cab1152b90.tar.gz
Improve check for file existence.
-rw-r--r--uploader/templates/phenotypes/add-phenotypes-raw-files.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/uploader/templates/phenotypes/add-phenotypes-raw-files.html b/uploader/templates/phenotypes/add-phenotypes-raw-files.html
index 6193edf..75fe622 100644
--- a/uploader/templates/phenotypes/add-phenotypes-raw-files.html
+++ b/uploader/templates/phenotypes/add-phenotypes-raw-files.html
@@ -467,7 +467,7 @@
Object.entries(preview_tables_to_elements_map).forEach((mapentry) => {
var preview_table = $(mapentry[0]);
var file_input = $(mapentry[1]);
- if(file_input.length === 1) {
+ if(file_input[0].files.length > 0) {
readFirstNLines(
file_input[0].files[0],
10,