Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search can crash the app if showCorrespondingWMSLayers is true and the result comes from a DocumentHandler document #1130

Closed
jacobwod opened this issue Jun 30, 2022 · 0 comments
Assignees
Labels
Milestone

Comments

@jacobwod
Copy link
Member

Search can crash the app if showCorrespondingWMSLayers is true and the result comes from a DocumentHandler document.

The reason is that the "faked" featureCollection that comes from the DocumentHandler document lacks a corresponding OL layer. But we tried stuff like this:

if (layer.get("layerType") === "group")

… which, in case of undefined, crashed the app.

@jacobwod jacobwod added the bug label Jun 30, 2022
@jacobwod jacobwod added this to the 3.11 milestone Jun 30, 2022
@jacobwod jacobwod self-assigned this Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant