TilBlechschmidt / ELSA

Tool to visualise emergency landing spot reachability for general aviation aircraft
https://elsa.tibl.dev/
MIT License
0 stars 0 forks source link

Guide crashes when default preferences have not been loaded #7

Closed TilBlechschmidt closed 2 years ago

TilBlechschmidt commented 2 years ago

When clearing the localStorage and then going through the guide, the riskFactors page crashes because it attempts to display the default/current preferences. However, as a new user, the localStorage contains null until you open up the map.

Ideally, the default values should be extracted from the Rust side of things and put into JS together with a lot of other "magic values". That way, the localStorage can be initialised with the default values from the get-go.