File tree Expand file tree Collapse file tree 2 files changed +317
-137
lines changed Expand file tree Collapse file tree 2 files changed +317
-137
lines changed Original file line number Diff line number Diff line change @@ -620,7 +620,8 @@ async function fetchHeatmapWindow() {
620620 void fetchHistogram ( ) ;
621621 }
622622 if ( sliceChanged ) {
623- void fetchSliceProperties ( ) ;
623+ const shouldApplyScale = ! heatmapState . scaleInitialized ;
624+ void fetchSliceProperties ( { applyScale : shouldApplyScale } ) ;
624625 }
625626
626627 heatmapState . viewMin = typeof data . min === "number" ? data . min : undefined ;
@@ -857,6 +858,8 @@ function openHeatmap(nameEncoded, options = {}) {
857858 syncHeatmapControls ( ) ;
858859 setHeatmapOverlay ( "Preparing heatmap…" , "loading" ) ;
859860 void fetchHeatmapWindow ( ) ;
861+ const shouldApplySliceScale = ! heatmapState . pendingScale ;
862+ void fetchSliceProperties ( { slice : heatmapState . slice , applyScale : shouldApplySliceScale } ) ;
860863 updateHeatmapUrlState ( { syncPending : true } ) ;
861864
862865 pendingHeatmapState = {
You can’t perform that action at this time.
0 commit comments