Skip to content

Commit

Permalink
Hotfix:
Browse files Browse the repository at this point in the history
- Prevent a crash that occurs when happens to click on an already selected feature in Edit plugin, during the Edit operation.
  • Loading branch information
jacobwod committed Nov 25, 2021
1 parent 0b72207 commit 7561c27
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions new-client/src/models/Click.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,9 @@ export function handleClick(evt, map, callback) {
evt.pixel,
(feature, layer) => {
if (
layer.get("queryable") === true ||
layer.get("type") === "searchResultLayer"
layer &&
(layer.get("queryable") === true ||
layer.get("type") === "searchResultLayer")
) {
feature.layer = layer;
features.push(feature);
Expand Down

0 comments on commit 7561c27

Please sign in to comment.