dragonfly-science / bailiwick-ui

Bailiwick frontend
1 stars 1 forks source link

Crash when selecting an indicator for which the current area type has no data #44

Closed richardmansfield closed 4 years ago

richardmansfield commented 4 years ago

If you have areatype == ward selected, and a ward is selected, the indicators without data for that ward are greyed out as they should be.

If you have areatype == ward selected, but you have not selected a ward, indicators without ward data are not greyed out, and clicking on one crashes the app.

Same behaviour when selecting from the map. If you are on an indicator without ward data, and you click the Auckland region twice, it will attempt to set area type == ward and crash.