-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix: minor bugs for mapped for funders demo #306
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,6 +42,7 @@ export function useChoroplethFeatureStatesEffect() { | |
| useEffect(() => { | ||
| const map = mapRef?.current; | ||
| if (!areaStats || !map) { | ||
| prevAreaStatValues.current = new Map(); | ||
| return; | ||
|
Comment on lines
44
to
46
|
||
| } | ||
|
|
||
|
|
@@ -107,10 +108,5 @@ export function useChoroplethFeatureStatesEffect() { | |
|
|
||
| areaCodesToClean.current = nextAreaCodesToClean; | ||
| prevAreaStatValues.current = nextStatValues; | ||
|
|
||
| return () => { | ||
| areaCodesToClean.current = {}; | ||
| prevAreaStatValues.current = new Map(); | ||
| }; | ||
| }, [areaStats, lastLoadedSourceId, layerId, mapRef, sourceId]); | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.