Skip to content

Commit 9b2c3d1

Browse files
committed
fix for default enum variable type
1 parent 761ffb7 commit 9b2c3d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libs/web-flow-executor/src/nodes/scoped-variable.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,10 @@ export const getScopedVariable =
258258
if (scopeId && !isGlobal) {
259259
return scopedData[scopeId];
260260
}
261-
return currentValue;
261+
return (
262+
(currentValue || node?.nodeInfo?.formValues?.['initialEnumValue']) ??
263+
''
264+
);
262265
} else if (fieldType === 'dictionary') {
263266
if (scopeId && !isGlobal) {
264267
if (parameter === undefined) {

0 commit comments

Comments
 (0)