fix: association field enablement affecting block field states (#4528)

This commit is contained in:
Katherine 2024-05-30 14:42:28 +08:00 committed by GitHub
parent 073e2b0d5b
commit 9e8335572a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -717,7 +717,7 @@ const findSchema = (schema: Schema, key: string, action: string) => {
if (s[key] === action) {
return s;
}
if (s['x-component'] !== 'Action.Container' && s['x-component'] !== 'AssociationField.Viewer') {
if (s['x-component'] !== 'Action.Container' && !s['x-component'].includes('AssociationField')) {
const c = findSchema(s, key, action);
if (c) {
return c;