premieroctet / next-admin

▲ Full-featured admin for Next.js and Prisma
https://next-admin.js.org
MIT License
324 stars 19 forks source link

[FEATURE] - Increase model depth #443

Closed kaluxxx closed 1 month ago

kaluxxx commented 2 months ago

Summary

Hello, I would like to display in a Dialog component a model that has more than 3 levels of depth.

Ex: exhibitor.showGuide.address.postalCode or exhibitor.cart.cartItems[1].price

However, the data retrieved from the ClientActionDialogContentProps only contains a maximum of 2 levels of dependencies.

Would it be possible to include a parameter to increase this level of depth?

Thanks in advance!

Basic Example

image

Drawbacks

No response

Unresolved questions

No response

cregourd commented 1 month ago

Hi, thanks for your feedback. A patch is available on v6.1.6 🚀

Feel free to give us any other feedback