Skip to content

Commit

Permalink
#885 - ensuring analyses are loaded before dataset shape is retrieved
Browse files Browse the repository at this point in the history
  • Loading branch information
adkinsrs committed Sep 11, 2024
1 parent 8b6529b commit a63078e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/js/sc_workbench.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a63078e

Please sign in to comment.