Merge pull request #15441 from Budibase/BUDI-8986/validate-screen-datasources-json-arrays
Validate screen json array datasource settings
This commit is contained in:
commit
1c8772adcf
|
@ -34,6 +34,7 @@ const validationKeyByType: Record<UIDatasourceType, string | null> = {
|
|||
custom: null,
|
||||
link: "rowId",
|
||||
field: "value",
|
||||
jsonarray: "value",
|
||||
}
|
||||
|
||||
export const screenComponentErrors = derived(
|
||||
|
@ -74,6 +75,10 @@ export const screenComponentErrors = derived(
|
|||
bindings.extractRelationships(componentBindings)
|
||||
),
|
||||
...reduceBy("value", bindings.extractFields(componentBindings)),
|
||||
...reduceBy(
|
||||
"value",
|
||||
bindings.extractJSONArrayFields(componentBindings)
|
||||
),
|
||||
}
|
||||
|
||||
const resourceId = componentSettings[validationKey]
|
||||
|
|
|
@ -6,3 +6,4 @@ export type UIDatasourceType =
|
|||
| "custom"
|
||||
| "link"
|
||||
| "field"
|
||||
| "jsonarray"
|
||||
|
|
Loading…
Reference in New Issue