mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:25:15 +00:00
fix: edit form unchanged should not appear unSaveed warning when cloas modal (#3920)
This commit is contained in:
parent
59c1aea942
commit
e7187e536d
@ -71,7 +71,7 @@ const InternalAssociationSelect = observer(
|
||||
onFieldChange('*', (fieldPath: any) => {
|
||||
const linkageFields = filterAnalyses(field.componentProps?.service?.params?.filter) || [];
|
||||
if (linkageFields.includes(fieldPath?.props?.name) && field.value) {
|
||||
props.onChange(field.initialValue);
|
||||
field.setValue(field.initialValue);
|
||||
setInnerValue(field.initialValue);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user