Skip to content

Commit

Permalink
Merge pull request #2328 from concord-consortium/187790534-locked-axi…
Browse files Browse the repository at this point in the history
…s-resets-when-manual-points-is-chosen

fix: Locked Axis resets when manual points chosen (PT-187790534)
  • Loading branch information
emcelroy authored Jul 10, 2024
2 parents 5425f1f + 5712be7 commit 7c501c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/graph/models/graph-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ export class GraphController {
attrType = dataConfiguration.attributeType(attrRole) ?? 'empty',
currAxisModel = graphModel.getAxis(place),
currentType = currAxisModel?.type ?? 'empty',
[min, max] = kDefaultNumericAxisBounds;
[min, max] = graphModel.lockAxes && isNumericAxisModel(currAxisModel)
? [currAxisModel.min, currAxisModel.max]
: kDefaultNumericAxisBounds;
switch (attrType) {
case 'numeric': {
if (!currAxisModel || !isNumericAxisModel(currAxisModel)) {
Expand Down

0 comments on commit 7c501c2

Please sign in to comment.