From b7f6de829fbf86c35bbc34e02596782d8c615553 Mon Sep 17 00:00:00 2001 From: labkey-jeckels Date: Tue, 19 Dec 2023 11:10:30 -0800 Subject: [PATCH] Fix crawler test failure due to unexpected alert --- .../resources/views/illuminaSampleSheetExport.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/genotyping/resources/views/illuminaSampleSheetExport.html b/genotyping/resources/views/illuminaSampleSheetExport.html index c645398..dbf1dd4 100644 --- a/genotyping/resources/views/illuminaSampleSheetExport.html +++ b/genotyping/resources/views/illuminaSampleSheetExport.html @@ -7,7 +7,7 @@ Ext4.onReady(function(){ var webpart = <%=webpartContext%>; - var pks = LABKEY.ActionURL.getParameterArray('pks'); + var pks = LABKEY.ActionURL.getParameterArray('pks') || []; var schemaName = 'lists'; var queryName = 'Samples'; @@ -26,7 +26,12 @@ }).render(webpart.wrapperDivId); } else { - alert('No rows found') + Ext4.Msg.show({ + title:'ERROR', + msg: 'No rows found', + buttons: Ext4.Msg.OK, + icon: Ext4.MessageBox.ERROR + }); } } });