From b7b9f562ed39ee4827c99560a314f75967d467ef Mon Sep 17 00:00:00 2001 From: adkinsrs Date: Mon, 9 Sep 2024 14:26:37 -0400 Subject: [PATCH] #883 - Fixed bug with invalid analysis ID retrieval --- www/js/curator_common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/js/curator_common.js b/www/js/curator_common.js index edcc2294..f7ad226d 100644 --- a/www/js/curator_common.js +++ b/www/js/curator_common.js @@ -490,7 +490,7 @@ const analysisSelectUpdate = async () => { */ const chooseAnalysis = async () => { const analysisValue = analysisSelect.selectedOptions.length ? getSelect2Value(analysisSelect) : undefined; - const analysisId = (analysisValue && analysisValue > 0) ? analysisValue : null; + const analysisId = analysisValue || null; const analysisText = (analysisId?.length) ? analysisId : "Primary Analysis"; // Display current selected analysis