openblocks-dev / openblocks

🔥 🔥 🔥 The Open Source Retool Alternative
https://cloud.openblocks.dev
GNU Affero General Public License v3.0
5.67k stars 335 forks source link

Can't save JSONSchemaForm with an empty field #400

Open decentropy opened 8 months ago

decentropy commented 8 months ago

The issue is... JSONSchemaForm will not let me save data, if a field is empty.

I'm using setIn from the form back to data collection. Clearing out a field, causes error: TypeError: Type "JSON" is required, but find "desc" type with value: undefined

I've tried setting schema to optional, default ""... but gives error and erases the data.

Not sure where to find my openblocks version, but it's new container off docker.io Attaching app to replicate issue.

test.json