agentejo / cockpit

Add content management functionality to any site - plug & play / headless / api-first CMS
http://getcockpit.com
MIT License
5.4k stars 524 forks source link

Return null instead of empty string #1393

Closed MarcoDaniels closed 3 years ago

MarcoDaniels commented 3 years ago

When using the api to fetch data, in every field type an empty string is returned instead of null.

This will only fix newly created content, as existing content will already have the empty string saved.

Solves: #1232

aheinze commented 3 years ago

Thanks!