We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d5da6e commit 5fec813Copy full SHA for 5fec813
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/hooks/use-block-connections.ts
@@ -167,6 +167,7 @@ export function useBlockConnections(blockId: string) {
167
.filter((edge) => edge.target === blockId)
168
.map((edge) => {
169
const sourceBlock = blocks[edge.source]
170
+ if (!sourceBlock) return null
171
172
// Get the response format from the subblock store instead
173
const responseFormatValue = useSubBlockStore
@@ -202,6 +203,7 @@ export function useBlockConnections(blockId: string) {
202
203
responseFormat,
204
}
205
})
206
+ .filter(Boolean) as ConnectedBlock[]
207
208
return {
209
incomingConnections: allPathConnections,
0 commit comments