diff --git a/packages/core/client/src/schema-initializer/utils.ts b/packages/core/client/src/schema-initializer/utils.ts index 5c80353fce..60e3b34758 100644 --- a/packages/core/client/src/schema-initializer/utils.ts +++ b/packages/core/client/src/schema-initializer/utils.ts @@ -768,7 +768,7 @@ export const findSchema = (schema: Schema, key: string, action: string, name?: s if (s[key] === action && (!name || s.name === name)) { return s; } - if (s['x-component'] !== 'Action.Container' && !s['x-component'].includes('AssociationField')) { + if (s['x-component'] && s['x-component'] !== 'Action.Container' && !s['x-component'].includes('AssociationField')) { const c = findSchema(s, key, action, name); if (c) { return c;