premieroctet / next-admin

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

[FEATURE] - Keep untouched fields as null #345

Closed nahtnam closed 3 months ago

nahtnam commented 4 months ago

Summary

When editing a field, if I leave a string empty, it converts from null to an empty string.

In my case I am using zenstack to validate that the field either null or a valid url. Since next-admin is sending an empty string (not null), the validation fails as an empty string is not a URL

Basic Example

N/A

Drawbacks

N/A

Unresolved questions

N/A

cregourd commented 3 months ago

This feature is available on v4.4.2 🚀

Feel free to give us feedback