Skip to content

Commit

Permalink
Don't set latestConnectionId when working with a Line
Browse files Browse the repository at this point in the history
  • Loading branch information
raimohanska committed Sep 18, 2023
1 parent 84d471f commit ca1ad8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/src/board/BoardView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
canWrite,
findConnection,
findItem,
getConnection,
Id,
Image,
Item,
Expand Down Expand Up @@ -117,7 +118,7 @@ export const BoardView = ({
}
}
const connectionId = [...getSelectedConnectionIds(f)][0]
if (connectionId) {
if (connectionId && getConnection(board.get())(connectionId)?.action === "connect") {
latestConnectionId.set(connectionId)
}
})
Expand Down

0 comments on commit ca1ad8a

Please sign in to comment.