Skip to content

Commit

Permalink
Merge pull request #218 from liam-hq/enhance-the-highlighting-of-rela…
Browse files Browse the repository at this point in the history
…tionships-when-hovering

Enhance the highlighting of relationships when hovering
  • Loading branch information
MH4GF authored Dec 11, 2024
2 parents 2a6ccb0 + a5b96f9 commit 576073b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const ERDContent: FC<Props> = ({
(_, { id }) => {
setEdges((edges) =>
edges.map((e) =>
e.source === id
e.source === id || e.target === id
? { ...e, animated: true, data: { ...e.data, isHovered: true } }
: e,
),
Expand All @@ -70,7 +70,7 @@ export const ERDContent: FC<Props> = ({
(_, { id }) => {
setEdges((edges) =>
edges.map((e) =>
e.source === id
e.source === id || e.target === id
? { ...e, animated: false, data: { ...e.data, isHovered: false } }
: e,
),
Expand Down

0 comments on commit 576073b

Please sign in to comment.