diff --git a/packages/core/client/src/schema-component/common/utils/logic.js b/packages/core/client/src/schema-component/common/utils/logic.js index 7dd9b0c6c1..df8bb51fab 100644 --- a/packages/core/client/src/schema-component/common/utils/logic.js +++ b/packages/core/client/src/schema-component/common/utils/logic.js @@ -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))) {