Remove readonly fields from being able to be used in a save row button action

This commit is contained in:
Andrew Kingston 2024-10-11 09:39:08 +01:00
parent d1bc83ab0a
commit 7474d3c987
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@
const getSchemaFields = resourceId => { const getSchemaFields = resourceId => {
const { schema } = getSchemaForDatasourcePlus(resourceId) const { schema } = getSchemaForDatasourcePlus(resourceId)
return Object.values(schema || {}) return Object.values(schema || {}).filter(field => !field.readonly)
} }
const onFieldsChanged = e => { const onFieldsChanged = e => {