Skip to content

Commit fececab

Browse files
committed
fix(preview): ensure metadata.name in non-deployed child workflow path
1 parent 53cf1b8 commit fececab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

apps/sim/executor/handlers/workflow/workflow-handler.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,10 @@ export class WorkflowBlockHandler implements BlockHandler {
363363
const workflowStateWithVariables = {
364364
...workflowState,
365365
variables: workflowVariables,
366+
metadata: {
367+
...(workflowState.metadata || {}),
368+
name: workflowData.name || DEFAULTS.WORKFLOW_NAME,
369+
},
366370
}
367371

368372
if (Object.keys(workflowVariables).length > 0) {

0 commit comments

Comments
 (0)