From 5892a1825505803c51673fa6acec24f8fa49c5ee Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 21 Apr 2025 17:11:14 -0500 Subject: Update the previews, in the case where resumables exist. --- uploader/templates/phenotypes/add-phenotypes-raw-files.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/uploader/templates/phenotypes/add-phenotypes-raw-files.html b/uploader/templates/phenotypes/add-phenotypes-raw-files.html index 75fe622..57ab776 100644 --- a/uploader/templates/phenotypes/add-phenotypes-raw-files.html +++ b/uploader/templates/phenotypes/add-phenotypes-raw-files.html @@ -474,6 +474,17 @@ [makePreviewUpdater(preview_table)]); } }); + + if(typeof(resumables) !== "undefined") { + resumables.forEach((resumable) => { + if(resumable.files.length > 0) { + readFirstNLines( + resumable.files[0].file, + 10, + [makePreviewUpdater(resumable.preview_table)]); + } + }); + } }; [ -- cgit v1.2.3