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 @@ -555,6 +555,7 @@ const WorkflowContent = React.memo(() => {
const candidates = Object.entries(blocks)
.filter(([id, block]) => {
if (!block.enabled) return false
if (block.type === 'response') return false
const node = nodeIndex.get(id)
if (!node) return false

Expand Down Expand Up @@ -726,7 +727,9 @@ const WorkflowContent = React.memo(() => {
) {
if (existingChildBlocks.length > 0) {
// Connect to the nearest existing child block within the container
// Filter out response blocks since they have no outgoing handles
const closestBlock = existingChildBlocks
.filter((b) => b.type !== 'response')
.map((b) => ({
block: b,
distance: Math.sqrt(
Expand Down Expand Up @@ -2048,7 +2051,9 @@ const WorkflowContent = React.memo(() => {

if (existingChildBlocks.length > 0) {
// Connect from nearest existing child inside the container
// Filter out response blocks since they have no outgoing handles
const closestBlock = existingChildBlocks
.filter((b) => b.type !== 'response')
.map((b) => ({
block: b,
distance: Math.sqrt(
Expand Down
Loading