Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sshugsc committed Jan 8, 2025
1 parent 629abf2 commit 04b1d9d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/DetailDrawer/RelationshipList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@ function RelationshipList(props: RelationshipListProps) {
{edges.map((edge) => {
const isOpen = linkOpen === rid(edge);
let isIn = false;

if (edge.in !== undefined) {
isIn = edge.in && rid(edge.in) === rid(record);
}
const targetNode = isIn ? edge.out : edge.in;

if (targetNode === undefined || rid(targetNode) === rid(record)) {
return null;
}
Expand Down

0 comments on commit 04b1d9d

Please sign in to comment.