mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 03:02:19 +08:00
fix(globalOperators): handle null and empty array cases in function (#6415)
This commit is contained in:
parent
d04bc83f2f
commit
ece3d10139
@ -124,7 +124,7 @@ export function getOperators() {
|
|||||||
return !a.includes(b);
|
return !a.includes(b);
|
||||||
},
|
},
|
||||||
$anyOf: function (a, b) {
|
$anyOf: function (a, b) {
|
||||||
if (a.length === 0) {
|
if (a == null || a.length === 0) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (Array.isArray(a) && Array.isArray(b) && a.some((element) => Array.isArray(element))) {
|
if (Array.isArray(a) && Array.isArray(b) && a.some((element) => Array.isArray(element))) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user