Skip to content

Commit

Permalink
fix: Simplify edge handle generation in flow slice
Browse files Browse the repository at this point in the history
  • Loading branch information
preet-bhadra committed Feb 10, 2025
1 parent d072058 commit f8dd331
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/store/flowSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ const flowSlice = createSlice({
selected: false,
source: link.source_id,
target: link.target_id,
sourceHandle: link.source_handle || state.nodes.find((node) => node.id === link.source_id)?.data?.title,
targetHandle: link.target_handle || state.nodes.find((node) => node.id === link.source_id)?.data?.title,
sourceHandle: link.source_handle || link.source_id,
targetHandle: link.target_handle || link.source_id,
}))
// deduplicate edges
edges = edges.filter(
Expand Down

0 comments on commit f8dd331

Please sign in to comment.