diff --git a/packages/builder/src/stores/builder/screenComponent.ts b/packages/builder/src/stores/builder/screenComponent.ts index 1c1070ad17..4100e1e1fc 100644 --- a/packages/builder/src/stores/builder/screenComponent.ts +++ b/packages/builder/src/stores/builder/screenComponent.ts @@ -34,6 +34,7 @@ const validationKeyByType: Record = { 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] diff --git a/packages/types/src/ui/datasource.ts b/packages/types/src/ui/datasource.ts index c6b1ed01d1..8cc9b4ff94 100644 --- a/packages/types/src/ui/datasource.ts +++ b/packages/types/src/ui/datasource.ts @@ -6,3 +6,4 @@ export type UIDatasourceType = | "custom" | "link" | "field" + | "jsonarray"