mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:35:20 +00: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…
Reference in New Issue
Block a user