1
0
Fork 0
mirror of synced 2024-07-08 07:46:10 +12:00

Remove schema validation when inheriting initial values in forms

This commit is contained in:
Andrew Kingston 2021-08-19 17:18:41 +01:00
parent a2efbb1338
commit 29c33d7ed4

View file

@ -24,12 +24,9 @@
if (["user", "url"].includes(context.closestComponentId)) { if (["user", "url"].includes(context.closestComponentId)) {
return {} return {}
} }
// Only inherit values if the table ID matches // Always inherit the closest data source
const closestContext = context[`${context.closestComponentId}`] || {} const closestContext = context[`${context.closestComponentId}`] || {}
if (dataSource.tableId !== closestContext?.tableId) { return closestContext || {}
return {}
}
return closestContext
} }
$: initialValues = getInitialValues(actionType, dataSource, $context) $: initialValues = getInitialValues(actionType, dataSource, $context)