paljs / prisma-tools

Prisma tools to help you generate CRUD system for GraphQL servers
https://paljs.com
MIT License
687 stars 55 forks source link

proposing some minor fix for object filter rendering logic #199

Closed wuichen closed 3 years ago

wuichen commented 3 years ago

scenario: if the filter is currently an object filter, when the user selects another field that is also an object filter, the code breaks, as the current rendering logic is not picking up the new model's fields. Adding a hook to capture field prop updates in object filter prevents cases like this to happen.

AhmedElywa commented 3 years ago

Thank you @wuichen