Skip to content

Commit

Permalink
fix: getSchemaVariables filters null variables
Browse files Browse the repository at this point in the history
Related to #860
  • Loading branch information
Skaiir committed Oct 23, 2023
1 parent 9a3a450 commit 0b32be0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/form-js-viewer/src/util/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)=> {
Expand Down

0 comments on commit 0b32be0

Please sign in to comment.