mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:06:25 +00:00
fix: filter issue when setting single-select field as title field in association select (#5581)
This commit is contained in:
parent
bb866fdde0
commit
812a2cb24a
@ -82,7 +82,8 @@ const InternalRemoteSelect = connect(
|
||||
|
||||
const operator = useMemo(() => {
|
||||
if (targetField?.interface) {
|
||||
return getInterface(targetField.interface)?.filterable?.operators[0].value || '$includes';
|
||||
const initialOperator = getInterface(targetField.interface)?.filterable?.operators[0].value || '$includes';
|
||||
return initialOperator !== '$eq' ? initialOperator : '$includes';
|
||||
}
|
||||
return '$includes';
|
||||
}, [targetField]);
|
||||
|
Loading…
Reference in New Issue
Block a user