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 toggle #163

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Fix toggle #163

merged 1 commit into from
Aug 8, 2024

Conversation

katamartin
Copy link
Member

The sidebar toggle has different behavior across routes. For /research/forest-offsets-fires, it toggles rendering FIRMS hotspots. For /research/forest-offsets-crediting, it toggles behavior that filters projects based on whether they're in view in the map. This filtering logic does not seem to work on the fire route and instead always returns an empty list (this is okay).

This PR fixes an inconsistency that currently exists depending on whether you click on the toggle directly (correct switching logic) or click on the toggle label (always tries to filter projects).

Copy link

vercel bot commented Aug 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
forest-offsets-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 8, 2024 2:47pm

Copy link
Member

@Shane98c Shane98c left a comment

Choose a reason for hiding this comment

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

nice catch! lgtm!

@katamartin katamartin merged commit 1f5b77f into main Aug 8, 2024
9 checks passed
@katamartin katamartin deleted the katamartin/fix-toggle branch August 8, 2024 15:17
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.

2 participants