Skip to content

Commit

Permalink
bug-fix: Highlight source cardinality with multi-foreign keys
Browse files Browse the repository at this point in the history
  • Loading branch information
sasamuku committed Dec 20, 2024
1 parent 1a8ca43 commit d7b4087
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions frontend/.changeset/brave-guests-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@liam-hq/erd-core": patch
"@liam-hq/cli": patch
---

🐛 bug-fix: Highlight source cardinality with multi-foreign keys
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,14 @@ const unhighlightNode = (node: TableNodeType): TableNodeType => ({
const highlightEdge = (edge: Edge): Edge => ({
...edge,
animated: true,
zIndex: 1,
data: { ...edge.data, isHighlighted: true },
})

const unhighlightEdge = (edge: Edge): Edge => ({
...edge,
animated: false,
zIndex: 0,
data: { ...edge.data, isHighlighted: false },
})

Expand Down

0 comments on commit d7b4087

Please sign in to comment.