fix: ineffective conditional checks for checkbox fields as linkage rule under m2o association field (#4849)

This commit is contained in:
Katherine 2024-07-09 14:17:32 +08:00 committed by GitHub
parent 9ba64ee6f1
commit f8e9385845
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -134,7 +134,7 @@ export function getJsonLogic() {
return a.some((element) => b.includes(element));
},
$noneOf: function (a, b) {
if (a.length === 0) {
if (!a || a?.length === 0) {
return true;
}
if (Array.isArray(a) && Array.isArray(b) && a.some((element) => Array.isArray(element))) {