Skip to content

Commit

Permalink
Merge pull request #5 from 5minds/feature/remove-need-for-validation-…
Browse files Browse the repository at this point in the history
…condition

Entfernt Notwendigkeit für Default Condition
  • Loading branch information
luisthieme authored Aug 21, 2024
2 parents 7eaeb6c + 440ff68 commit f8c9cd2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@5minds/node-red-dashboard-2-processcube-dynamic-form",
"version": "1.0.21",
"version": "1.0.22",
"description": "The ui component for the ProcessCube dynamic-form",
"keywords": [
"processcube",
Expand Down
1 change: 1 addition & 0 deletions ui/components/UIDynamicForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ export default {
}
},
checkCondition(condition) {
if (condition == '') return true;
try {
const func = Function('fields', 'userTask', 'msg', '"use strict"; return (' + condition + ')');
const result = func(this.formData, this.taskInput, this.msg);
Expand Down
2 changes: 1 addition & 1 deletion ui/index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/* Exports of all of the components in this node */
export { default as UIDynamicForm } from './components/UIDynamicForm.vue'
export { default as UIDynamicForm } from './components/UIDynamicForm.vue';

0 comments on commit f8c9cd2

Please sign in to comment.