Skip to content

Commit 4efea0d

Browse files
committed
fix(blocks): narrow currentWorkflowId to string to satisfy strict null checks
1 parent 7485756 commit 4efea0d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/workflow-block.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ export const WorkflowBlock = memo(function WorkflowBlock({
875875
runPathStatus,
876876
} = useBlockVisual({ blockId: id, data, isPending, isSelected: selected })
877877

878-
const currentWorkflowId = isSandbox ? '' : (params.workflowId as string) || activeWorkflowId
878+
const currentWorkflowId = isSandbox ? '' : (params.workflowId as string) || activeWorkflowId || ''
879879

880880
const currentBlock = currentWorkflow.getBlockById(id)
881881

0 commit comments

Comments
 (0)