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
24 stars 13 forks source link

fix: inability to be used in components #18

Closed omikulcik closed 1 year ago

omikulcik commented 1 year ago

The location field was causing crashed when used in a component. This PR fixes it.

Vaibhav-npc commented 1 year ago

@omikulcik I see with this change, geo fields are getting created in component tables, but it seems search is still not working for components. Does the search middleware needs change to properly format field and table names for deeply nested fields?

https://github.com/notum-cz/strapi-plugin-location/blob/main/server/utils/middleware.ts#L26

omikulcik commented 1 year ago

@Vaibhav-npc Yes, you are right. The middleware will have to be adjusted. We will put in on our roadmap and hopefully ship this feature soon.