Skip to content

Commit

Permalink
Ensure Draw, Pick or Transform action when changing redlining layer
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Dec 12, 2024
1 parent a2cb81e commit e83b6ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/Redlining.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ class Redlining extends React.Component {
this.updateRedliningState(data);
};
changeRedliningLayer = (layer) => {
this.updateRedliningState({layer: layer.id, layerTitle: layer.title});
const action = ["Draw", "Pick", "Transform"].includes(this.props.redlining.action) ? this.props.redlining.action : "Pick";
this.updateRedliningState({layer: layer.id, layerTitle: layer.title, action: action});
};
}

Expand Down

0 comments on commit e83b6ec

Please sign in to comment.