fix: field configuration of Kanban interacts with other block (#3689)
This commit is contained in:
parent
ff1877ce01
commit
61a290117f
@ -728,8 +728,7 @@ export const useCurrentSchema = (action: string, key: string, find = findSchema,
|
|||||||
const { removeActiveFieldName } = useFormActiveFields() || {};
|
const { removeActiveFieldName } = useFormActiveFields() || {};
|
||||||
const { form }: { form: Form } = useFormBlockContext();
|
const { form }: { form: Form } = useFormBlockContext();
|
||||||
let fieldSchema = useFieldSchema();
|
let fieldSchema = useFieldSchema();
|
||||||
|
if (!fieldSchema?.['x-initializer'] && fieldSchema?.['x-decorator'] === 'FormItem') {
|
||||||
if (!fieldSchema?.['x-initializer']) {
|
|
||||||
const recursiveInitializerSchema = recursiveParent(fieldSchema);
|
const recursiveInitializerSchema = recursiveParent(fieldSchema);
|
||||||
if (recursiveInitializerSchema) {
|
if (recursiveInitializerSchema) {
|
||||||
fieldSchema = recursiveInitializerSchema;
|
fieldSchema = recursiveInitializerSchema;
|
||||||
|
Loading…
Reference in New Issue
Block a user