Use proper field

This commit is contained in:
Adria Navarro 2025-01-27 12:17:25 +01:00
parent f666b35bd1
commit 1557b02682
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ const validationKeyByType: Record<UIDatasourceType, string | null> = {
query: "_id", query: "_id",
custom: null, custom: null,
link: "rowId", link: "rowId",
field: "label", field: "value",
} }
export const screenComponentErrors = derived( export const screenComponentErrors = derived(
@ -73,7 +73,7 @@ export const screenComponentErrors = derived(
"rowId", "rowId",
bindings.extractRelationships(componentBindings) bindings.extractRelationships(componentBindings)
), ),
...reduceBy("label", bindings.extractFields(componentBindings)), ...reduceBy("value", bindings.extractFields(componentBindings)),
} }
const resourceId = componentSettings[validationKey] const resourceId = componentSettings[validationKey]