geomoose / gm3

GeoMoose 3.0 Development. Please submit pull requests to the 'main' branch.
https://www.geomoose.org
MIT License
58 stars 59 forks source link

Catalog/Toolbar/Map won't load if user has a layer favorited that no longer exists #812

Closed chughes-lincoln closed 1 year ago

chughes-lincoln commented 1 year ago

If a user favorites a layer and then the admin removes that layer, the Catalog/Toolbar/Map won't load and site will throw a 'cannot read properties of undefined layer at mapsource/favorite'. If the user then clears their cookies the site will load properly. This doesn't appear to be an issue in 3.10.

This isn't a massive issue as there's an easy fix for it, but users wouldn't necessarily know that they need to clear their cookies, and it restricts the admin from making changes to any map-source as it could make their site appear very broken to certain users.

klassenjs commented 1 year ago

Good find.

chughes-lincoln commented 1 year ago

Fixed by https://github.com/geomoose/gm3/pull/815