From 57c7450e162e1498f9337f68d9feb66280f1a841 Mon Sep 17 00:00:00 2001 From: katherinehhh Date: Tue, 14 Nov 2023 14:43:31 +0800 Subject: [PATCH] refactor: findSchema should omit AssociationField.Viewer (#3037) --- packages/core/client/src/schema-initializer/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/client/src/schema-initializer/utils.ts b/packages/core/client/src/schema-initializer/utils.ts index 41a56d7c6..4f245b898 100644 --- a/packages/core/client/src/schema-initializer/utils.ts +++ b/packages/core/client/src/schema-initializer/utils.ts @@ -724,7 +724,7 @@ const findSchema = (schema: Schema, key: string, action: string) => { if (s[key] === action) { return s; } - if (s['x-component'] !== 'Action.Container') { + if (s['x-component'] !== 'Action.Container' && s['x-component'] !== 'AssociationField.Viewer') { const c = findSchema(s, key, action); if (c) { return c;