Skip to content

Commit

Permalink
Reset picked features when switching editing action
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Feb 23, 2024
1 parent eeeb932 commit 4ec506e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/Editing.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class Editing extends React.Component {
) : null];
}
actionClicked = (action, data) => {
this.setState({drawPick: false});
this.setState({drawPick: false, pickedFeatures: null});
if (action === "AttribTable") {
this.props.setCurrentTask("AttributeTable", null, null, {layer: this.state.selectedLayer});
} else if (action === "Draw") {
Expand Down

0 comments on commit 4ec506e

Please sign in to comment.