fix: field configuration of Kanban interacts with other block (#3689)

This commit is contained in:
katherinehhh 2024-03-13 15:21:35 +08:00 committed by GitHub
parent ff1877ce01
commit 61a290117f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -728,8 +728,7 @@ export const useCurrentSchema = (action: string, key: string, find = findSchema,
const { removeActiveFieldName } = useFormActiveFields() || {};
const { form }: { form: Form } = useFormBlockContext();
let fieldSchema = useFieldSchema();
if (!fieldSchema?.['x-initializer']) {
if (!fieldSchema?.['x-initializer'] && fieldSchema?.['x-decorator'] === 'FormItem') {
const recursiveInitializerSchema = recursiveParent(fieldSchema);
if (recursiveInitializerSchema) {
fieldSchema = recursiveInitializerSchema;