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

check for existence of key before using it #281

Merged
merged 3 commits into from
Nov 6, 2023
Merged

check for existence of key before using it #281

merged 3 commits into from
Nov 6, 2023

Conversation

smcalilly
Copy link
Contributor

Overview

Notes

That bug was happening whenever a phase had no existing assets. This defensive programming measure checks for the existence of the features key before trying to access it.

@smcalilly smcalilly requested a review from fgregg November 3, 2023 17:10
@smcalilly smcalilly temporarily deployed to ccfp-asset-d-patch-key-cqwjkti November 3, 2023 17:14 Inactive
})

if (existingGeoms && existingGeoms.features) {
existingGeoms.features.forEach(geom => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good!

@smcalilly smcalilly temporarily deployed to ccfp-asset-d-patch-key-a1kghzl November 3, 2023 19:52 Inactive
@smcalilly smcalilly temporarily deployed to ccfp-asset-d-patch-key-wmpvy4b November 3, 2023 20:11 Inactive
@smcalilly smcalilly merged commit b49bde7 into master Nov 6, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix map bug for selecting assets when no assets exist
2 participants