From 57f2fc25c6ec53d19bdf5c00407c88cab1152b90 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 21 Apr 2025 17:10:59 -0500 Subject: Improve check for file existence. --- uploader/templates/phenotypes/add-phenotypes-raw-files.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uploader') 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, -- cgit v1.2.3