api-platform / admin

A beautiful and fully-featured administration interface builder for hypermedia APIs
https://api-platform.com/docs/admin/
MIT License
480 stars 130 forks source link

feat: use native react-admin sanitizeEmptyValues #480

Closed alanpoulain closed 1 year ago

alanpoulain commented 1 year ago

The PR https://github.com/api-platform/admin/pull/460 has added custom code to manage empty values with a sanitizeEmptyValues prop, since it was not available anymore in react-admin 4 (it was in 3).

React-admin 4.4 has added back the sanitizeEmptyValues prop: https://github.com/marmelab/react-admin/pull/8188.

This PR then removes the custom code and enables the native sanitizeEmptyValues prop by default.