openblocks-dev / openblocks

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

Can't save JSONSchemaForm with an empty field #400

Open decentropy opened 1 year ago

decentropy commented 1 year 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