diff options
author | Frederick Muriuki Muriithi | 2025-04-21 17:10:59 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-04-21 17:10:59 -0500 |
commit | 57f2fc25c6ec53d19bdf5c00407c88cab1152b90 (patch) | |
tree | edcb8c01a81739ae03587793cc13117a2bb3936a | |
parent | cafb1ac5bc86c4fa77f53f4dcfcaa2c0d726a3c7 (diff) | |
download | gn-uploader-57f2fc25c6ec53d19bdf5c00407c88cab1152b90.tar.gz |
Improve check for file existence.
-rw-r--r-- | uploader/templates/phenotypes/add-phenotypes-raw-files.html | 2 |
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, |