Skip to content

Commit

Permalink
fix(ui): fix undefined pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
ncarlier committed Sep 17, 2020
1 parent 186299a commit 69c3895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/layout/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default withRouter(({ location }: RouteComponentProps) => {
as={Link}
to="/starred"
icon="star"
badge={data?.categories._starred}
badge={data && data.categories && data.categories._starred}
active={pathname.startsWith('/starred')}
onClick={menuAutoClose}
>
Expand Down

0 comments on commit 69c3895

Please sign in to comment.