osgeonepal / OSMLocalizer

A tool to localize anything on OpenStreetMap
https://osmlocalizer.klldev.org
BSD 2-Clause "Simplified" License
6 stars 5 forks source link

App crashes if the element json doesn't contain tags field #147

Closed Aadesh-Baral closed 1 year ago

Aadesh-Baral commented 1 year ago

Sentry issue: 4309960168

This issue is occuring in following line of file components/tagEditor/editForm.js:

const name = props.element["tags"]["name"] ? "name" : "name:en";
Aadesh-Baral commented 1 year ago

Fixed by #148 For now the editor view will just show empty form in case of element not having tags but in the future we might need to show a modal mentioning "the element doesn't have any tags. Do you want to skip this feature and mark as invalid data?"