Skip to content

Commit

Permalink
Made minmax apply before plot options are generated
Browse files Browse the repository at this point in the history
  • Loading branch information
Anders2303 committed Mar 7, 2025
1 parent 0e33f83 commit 4270d66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions typescript/packages/well-log-viewer/src/utils/tracks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,8 @@ function makeGraphTrackOptions(
const plotSetup = plotSetups[index];
const plotSetup2 = maybeGetSecondaryPlotSetup(plotSetups, index);

applySetupMinMax(plotSetup, plotSetup2, indexMinMax);

const plotConfig = buildPlotConfig(
plotSetup,
plotSetup2,
Expand All @@ -289,8 +291,6 @@ function makeGraphTrackOptions(
curvesUsed.push(plotSetup.curve);
trackData.push(plotSetup.plotData.data);

applySetupMinMax(plotSetup, plotSetup2, indexMinMax);

if (plotSetup2) {
// The "next" setup is already consumed, increment an extra step
index++;
Expand Down

0 comments on commit 4270d66

Please sign in to comment.