Skip to content

Commit

Permalink
fix(console): strange map connections (#6646)
Browse files Browse the repository at this point in the history
Fixes a visual bug introduced by #6602 where strange connections would show floating around the map.
  • Loading branch information
skyrpex committed Jun 6, 2024
1 parent af69dda commit 6031415
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions apps/wing-console/console/ui/src/services/use-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,21 @@ export const useMap = ({ expandedItems }: UseMapOptions) => {
return bridgeConnections({
connections:
rawConnections
.map((connection) => {
// Convert invokeAsync to invoke, since they
// are the same to the map view.
return {
...connection,
sourceOp:
connection.sourceOp === "invokeAsync"
? "invoke"
: connection.sourceOp,
targetOp:
connection.targetOp === "invokeAsync"
? "invoke"
: connection.targetOp,
};
})
.filter((connection) => {
return connection.source !== connection.target;
})
Expand Down

0 comments on commit 6031415

Please sign in to comment.