Skip to content

Commit 48d4abb

Browse files
committed
fix(input-mapping): fall back to manualWorkflowId in preview context
1 parent 47fde8e commit 48d4abb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/input-mapping

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/input-mapping/input-mapping.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ export function InputMapping({
6060
const [mapping, setMapping] = useSubBlockValue(blockId, subBlockId)
6161
const storeWorkflowId = useCanonicalSubBlockValue<string>(blockId, 'workflowId')
6262
const selectedWorkflowId = previewContextValues
63-
? resolvePreviewContextValue(previewContextValues.workflowId)
63+
? (resolvePreviewContextValue(previewContextValues.workflowId) ??
64+
resolvePreviewContextValue(previewContextValues.manualWorkflowId))
6465
: storeWorkflowId
6566

6667
const inputController = useSubBlockInput({

0 commit comments

Comments
 (0)