Skip to content
Snippets Groups Projects
Commit 594da90d authored by Matthias Konitzny's avatar Matthias Konitzny :fire:
Browse files

onBoxSelect handler will no longer allow nodes to be selected more than once.

parent 3a1a3215
Branches
Tags
No related merge requests found
Pipeline #56974 passed
...@@ -188,7 +188,9 @@ export class Editor extends React.PureComponent<any, stateTypes> { ...@@ -188,7 +188,9 @@ export class Editor extends React.PureComponent<any, stateTypes> {
return; return;
} }
this.selectNodes(selectedNodes.concat(this.state.selectedNodes)); this.selectNodes([
...new Set(selectedNodes.concat(this.state.selectedNodes)),
]);
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment