From 0b32be0f568f9af1088e6849fc756e44e3023a0c Mon Sep 17 00:00:00 2001 From: Valentin Serra Date: Mon, 23 Oct 2023 10:54:52 +0200 Subject: [PATCH] fix: getSchemaVariables filters null variables Related to #860 --- packages/form-js-viewer/src/util/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/form-js-viewer/src/util/index.js b/packages/form-js-viewer/src/util/index.js index d61cc313a..54f9c7cf8 100644 --- a/packages/form-js-viewer/src/util/index.js +++ b/packages/form-js-viewer/src/util/index.js @@ -152,7 +152,7 @@ export function getSchemaVariables(schema, options = {}) { } - return variables.filter(variable => variable !== undefined || variable !== null); + return variables.filter(variable => ![ undefined, null ].includes(variable)); }, []); const getBindingVariables = (node)=> {