fix: association select data scope linkage should support edit form (#5149)

This commit is contained in:
Katherine 2024-08-29 11:54:20 +08:00 committed by GitHub
parent cfbc2a6c15
commit 8beb8dbc3e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,8 +80,8 @@ const InternalAssociationSelect = observer(
onFieldInputValueChange('*', (fieldPath: any) => {
const linkageFields = filterAnalyses(field.componentProps?.service?.params?.filter) || [];
if (linkageFields.includes(fieldPath?.props?.name) && field.value) {
field.setValue(field.initialValue);
setInnerValue(field.initialValue);
field.setValue(undefined);
setInnerValue(undefined);
}
});
});