Skip to content

Commit

Permalink
Trigger plot drawing and selectors update only after button is clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
MonikaFu committed Jan 10, 2025
1 parent 9905962 commit 0cbc112
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/routes/sector_view.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,11 @@
fetchExposureStats();
if (checkDataAvailability()) {
showAnalysisHideAlert();
updateScenarioSourceSelector();
updateScenarioSelector();
updateAllocationMethodSelector();
updateEquityMarketSelector();
updateBenchmarkSelector();
fetchTrajectoryAlignmentIfApplicable();
fetchTechmix();
fetchEmissionIntensityPlot();
Expand Down Expand Up @@ -399,16 +404,7 @@
setValuesAssetClassSelector();
fetchExposureStats();
if (checkDataAvailability()) {
showAnalysisHideAlert();
updateScenarioSourceSelector();
updateScenarioSelector();
updateAllocationMethodSelector();
updateEquityMarketSelector();
updateBenchmarkSelector();
addEventListeners();
fetchTechmix();
fetchTrajectoryAlignmentIfApplicable();
fetchEmissionIntensityPlot();
} else {
handleNoDataForAssetSectorCombination();
}
Expand Down

0 comments on commit 0cbc112

Please sign in to comment.