From a63078ea78505af045b9cdf6128a6d1e7e4e067c Mon Sep 17 00:00:00 2001 From: adkinsrs Date: Wed, 11 Sep 2024 15:45:01 -0400 Subject: [PATCH] #885 - ensuring analyses are loaded before dataset shape is retrieved --- www/js/sc_workbench.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/js/sc_workbench.js b/www/js/sc_workbench.js index 96d403e7..f292e267 100644 --- a/www/js/sc_workbench.js +++ b/www/js/sc_workbench.js @@ -169,12 +169,12 @@ const getDatasetInfo = async (datasetId) => { currentAnalysis.dataset = ds; document.querySelector(UI.primaryFilterSection).classList.remove("is-hidden"); - analysisLabels = currentAnalysis.getSavedAnalysesList(ds.id, -1, 'sc_workbench'); // select first "selct an analysis" option + analysisLabels = await currentAnalysis.getSavedAnalysesList(ds.id, -1, 'sc_workbench'); // select first "selct an analysis" option + document.querySelector(UI.analysisSelect).disabled = false; document.querySelector(UI.primaryInitialInfoSection).classList.remove("is-hidden"); document.querySelector(UI.selectedDatasetShapeInitialElt).textContent = currentAnalysis.dataset.shape(); - document.querySelector(UI.analysisSelect).disabled = false; createToast("Dataset loaded", "is-success"); } catch (error) { createToast("Failed to access dataset");