fix: assignedField can not select dynamicValue (#2000)

This commit is contained in:
katherinehhh 2023-06-07 10:54:03 +08:00 committed by GitHub
parent 47838889f4
commit 83a6cae4e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,7 +172,6 @@ export const AssignedField = (props: any) => {
const userChangeHandler = (val) => {
setUserValue(val);
};
const useFieldMemo = useMemo(() => {
if (!collectionField) {
return <DeletedField />;
@ -192,7 +191,7 @@ export const AssignedField = (props: any) => {
</Select>
);
}
}, [collectionField, type, value, fieldType]);
}, [collectionField, type, value, fieldType, options]);
return (
<Space>