mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 05:25:52 +00:00
fix: association select data scope linkage should support edit form (#5149)
This commit is contained in:
parent
cfbc2a6c15
commit
8beb8dbc3e
@ -80,8 +80,8 @@ const InternalAssociationSelect = observer(
|
|||||||
onFieldInputValueChange('*', (fieldPath: any) => {
|
onFieldInputValueChange('*', (fieldPath: any) => {
|
||||||
const linkageFields = filterAnalyses(field.componentProps?.service?.params?.filter) || [];
|
const linkageFields = filterAnalyses(field.componentProps?.service?.params?.filter) || [];
|
||||||
if (linkageFields.includes(fieldPath?.props?.name) && field.value) {
|
if (linkageFields.includes(fieldPath?.props?.name) && field.value) {
|
||||||
field.setValue(field.initialValue);
|
field.setValue(undefined);
|
||||||
setInnerValue(field.initialValue);
|
setInnerValue(undefined);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user