diff --git a/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx b/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx index 464c932d4..c44559e11 100644 --- a/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx +++ b/packages/core/client/src/schema-component/antd/association-field/AssociationSelect.tsx @@ -124,8 +124,9 @@ const InternalAssociationSelect = observer((props: AssociationSelectProps) => { value={value || innerValue} service={service} onChange={(value) => { - setInnerValue(value); - props.onChange?.(value); + const val = value?.length !== 0 ? value : null; + setInnerValue(val); + props.onChange?.(val); }} CustomDropdownRender={addMode === 'quickAdd' && QuickAddContent} >