Skip to content

Commit

Permalink
Merge pull request #138 from dbcls/fix/undefined-class
Browse files Browse the repository at this point in the history
fix for undefined class
  • Loading branch information
sasaujp authored May 31, 2021
2 parents 9892a68 + 54ce0f4 commit a56cfac
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions node/src/ts/visualizer/components/ClassRelationsDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ const ClassRelationsDetail: React.FC<ClassRelationsDetailProps> = (props) => {
</>
),
[
classDetail.rhs,
classDetail,
dispatch,
focusingURI,
handleClickRightHandSideClasses,
Expand Down Expand Up @@ -202,7 +202,7 @@ const ClassRelationsDetail: React.FC<ClassRelationsDetailProps> = (props) => {
</>
),
[
classDetail.lhs,
classDetail,
dispatch,
focusingURI,
handleClickLeftHandSideClasses,
Expand All @@ -211,7 +211,9 @@ const ClassRelationsDetail: React.FC<ClassRelationsDetailProps> = (props) => {
getPreferredTriple,
]
)

if (!classDetail) {
return null
}
return (
<div className="section">
{headerElement}
Expand Down

0 comments on commit a56cfac

Please sign in to comment.