bcgov / nr-gwells

Groundwater Wells and Aquifers
Apache License 2.0
1 stars 0 forks source link

Front-end console errors #119

Closed fergmac closed 2 weeks ago

fergmac commented 3 weeks ago

Describe the task Currently when running the application there are Mapbox related errors appearing in the console. These need to be resolved to maintain the map functionality.

Purpose We want to maintain the map functionality.

Acceptance Criteria

Additional context

raarielgrace commented 2 weeks ago

Image searchQueryParams is included as a function in two different files that get imported together, so I'm changing the function names to be distinct.

raarielgrace commented 2 weeks ago

Image The mapbox map is registering duplicate routes to the router, causing this issue. Easy to fix with a catch statement.

raarielgrace commented 2 weeks ago

Image We were accessing the Vue refs object incorrectly in one place.

raarielgrace commented 2 weeks ago

Image Warning based on one place where we don't conditionally check if well.aquifer is defined.