fix: linked field value persisting on submission after relation field reset (#6207)

This commit is contained in:
Katherine 2025-02-13 11:33:49 +08:00 committed by GitHub
parent dfa58024dc
commit 075b1f0c88
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,8 +106,8 @@ const InternalAssociationSelect = observer(
isEqual(fieldPath?.indexes, field?.indexes) && isEqual(fieldPath?.indexes, field?.indexes) &&
fieldPath?.props?.name !== field.props.name fieldPath?.props?.name !== field.props.name
) { ) {
field.setValue(undefined); field.setValue(null);
setInnerValue(undefined); setInnerValue(null);
} }
}); });
}); });