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

Fix OSM Element Tags widget not updating when switching to next task #2510

Merged
merged 2 commits into from
Dec 30, 2024

Conversation

CollinBeczak
Copy link
Collaborator

@CollinBeczak CollinBeczak commented Dec 23, 2024

Resolves issue in this recently added widget: #2499

Issue: Because the widgets dont reset between tasks, the original state of the initial task was used in this widget despite changing tasks.
Solution: Make it so that the selectedFeatureIds is updated whenever the featureIds change using a useEffect hook.

@CollinBeczak CollinBeczak marked this pull request as ready for review December 23, 2024 16:28
@CollinBeczak CollinBeczak requested review from homersimpsons and jake-low and removed request for homersimpsons December 27, 2024 16:29
@jake-low jake-low changed the title update selectedFeatureIds value when featureIds change Fix OSM Element Tags widget not updating when switching to next task Dec 30, 2024
@CollinBeczak CollinBeczak merged commit dbab65f into main Dec 30, 2024
5 of 6 checks passed
@CollinBeczak CollinBeczak deleted the fix-OSMElementTags-widget branch December 30, 2024 18:09
@CollinBeczak CollinBeczak mentioned this pull request Feb 4, 2025
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.

3 participants