Validate by field
This commit is contained in:
parent
92606c6129
commit
f666b35bd1
|
@ -33,6 +33,7 @@ const validationKeyByType: Record<UIDatasourceType, string | null> = {
|
||||||
query: "_id",
|
query: "_id",
|
||||||
custom: null,
|
custom: null,
|
||||||
link: "rowId",
|
link: "rowId",
|
||||||
|
field: "label",
|
||||||
}
|
}
|
||||||
|
|
||||||
export const screenComponentErrors = derived(
|
export const screenComponentErrors = derived(
|
||||||
|
@ -72,6 +73,7 @@ export const screenComponentErrors = derived(
|
||||||
"rowId",
|
"rowId",
|
||||||
bindings.extractRelationships(componentBindings)
|
bindings.extractRelationships(componentBindings)
|
||||||
),
|
),
|
||||||
|
...reduceBy("label", bindings.extractFields(componentBindings)),
|
||||||
}
|
}
|
||||||
|
|
||||||
const resourceId = componentSettings[validationKey]
|
const resourceId = componentSettings[validationKey]
|
||||||
|
|
|
@ -5,3 +5,4 @@ export type UIDatasourceType =
|
||||||
| "query"
|
| "query"
|
||||||
| "custom"
|
| "custom"
|
||||||
| "link"
|
| "link"
|
||||||
|
| "field"
|
||||||
|
|
Loading…
Reference in New Issue