notum-cz / strapi-plugin-location

This plugin allows users to create location inputs and store latitude and longitude values as geometry types in a PostGIS database. It also provides functionality to filter items based on their location.
MIT License
26 stars 13 forks source link

Fix: parse JSON column field #67

Closed tiaxter closed 1 year ago

tiaxter commented 1 year ago

During the bootstrap when the location field is retrieved is retrieved from Postgres as string and then after there's if that try to access to JSON parameters using optional chaining. Using optional chaining the statement inside the if will always be false and then it won't repopulate the location geom field