Revert "fix(client): fix assigned field variable scope (#7012)" (#7092)

This reverts commit 75ff573357f5567b5d238474bd43586bee007a55.
This commit is contained in:
Junyi 2025-06-18 12:33:14 +08:00 committed by GitHub
parent 0cde65195e
commit a67302a468
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@
import { Field } from '@formily/core';
import { useField, useFieldSchema } from '@formily/react';
import { merge } from '@formily/shared';
import _, { cloneDeep } from 'lodash';
import _ from 'lodash';
import React, { useCallback, useEffect, useMemo } from 'react';
import { useFormBlockContext } from '../../../block-provider/FormBlockProvider';
import {
@ -126,7 +126,7 @@ export const AssignedFieldInner = (props: AssignedFieldProps) => {
currentForm.children = formatVariableScop(currentFormFields);
}
return cloneDeep(scope);
return scope;
},
[currentFormFields, name],
);