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