refactor: findSchema should omit AssociationField.Viewer (#3037)

This commit is contained in:
katherinehhh 2023-11-14 14:43:31 +08:00 committed by GitHub
parent c25f51d99b
commit 57c7450e16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -724,7 +724,7 @@ const findSchema = (schema: Schema, key: string, action: string) => {
if (s[key] === action) { if (s[key] === action) {
return s; 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); const c = findSchema(s, key, action);
if (c) { if (c) {
return c; return c;