Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -862,8 +862,6 @@ export const WorkflowBlock = memo(function WorkflowBlock({
const contentRef = useRef<HTMLDivElement>(null)

const params = useParams()
// In sandbox mode pass empty strings so all workspace-scoped queries are disabled
const currentWorkflowId = isSandbox ? '' : (params.workflowId as string)
const workspaceId = isSandbox ? '' : (params.workspaceId as string)

const {
Expand All @@ -877,6 +875,8 @@ export const WorkflowBlock = memo(function WorkflowBlock({
runPathStatus,
} = useBlockVisual({ blockId: id, data, isPending, isSelected: selected })

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

const currentBlock = currentWorkflow.getBlockById(id)

const { horizontalHandles, blockHeight, blockWidth, displayAdvancedMode, displayTriggerMode } =
Expand Down
Loading