mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-05 13:39:24 +08:00
refactor: code improve
This commit is contained in:
parent
4b50e8f70f
commit
c0ea1bdbd7
@ -121,7 +121,7 @@ const InternalRemoteSelect = connect(
|
||||
[targetField?.uiSchema, fieldNames],
|
||||
);
|
||||
const parseFilter = (rules) => {
|
||||
if (!rules) {
|
||||
if (!rules || Object.keys(rules).length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
const type = Object.keys(rules)[0] || '$and';
|
||||
|
Loading…
x
Reference in New Issue
Block a user