Skip to content

Commit 29f86d5

Browse files
committed
fix(nodeFactory): update default condition in createSwitchNode
Update the default condition from '${ .data }' to '.age > 18' to provide a more specific and meaningful default check
1 parent 3637171 commit 29f86d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/src/utils/nodeFactory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export function createSwitchNode(options = {}) {
222222
const {
223223
name,
224224
dataConditions = [{
225-
condition: '${ .data }',
225+
condition: '.age > 18',
226226
transition: {
227227
nextState: 'NextState'
228228
}

0 commit comments

Comments
 (0)