From 4ec506e6a9bdfbbf8cfd50193eb864b4a4201a7e Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Thu, 22 Feb 2024 14:14:54 +0100 Subject: [PATCH] Reset picked features when switching editing action --- plugins/Editing.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Editing.jsx b/plugins/Editing.jsx index 33bbfe5fc..6a7d2824a 100644 --- a/plugins/Editing.jsx +++ b/plugins/Editing.jsx @@ -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") {