mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-06 05:59:25 +08:00
fix: ineffective conditional checks for checkbox fields as linkage rule under m2o association field (#4849)
This commit is contained in:
parent
9ba64ee6f1
commit
f8e9385845
@ -134,7 +134,7 @@ export function getJsonLogic() {
|
|||||||
return a.some((element) => b.includes(element));
|
return a.some((element) => b.includes(element));
|
||||||
},
|
},
|
||||||
$noneOf: function (a, b) {
|
$noneOf: function (a, b) {
|
||||||
if (a.length === 0) {
|
if (!a || a?.length === 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
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