[go: up one dir, main page]

Skip to content

Commit

Permalink
fix: state is undefined (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
izayl committed Mar 31, 2024
1 parent 2e467d7 commit f9dd64c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/Sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function Sidebar(props: {
<div className={styles.items}>
<RouterLink className={clsx(styles.item, styles.backLink)} to={backPath}>
{' '}
{typeof history !== 'undefined' && history.state.key && backPath !== '/'
{typeof history !== 'undefined' && history.state?.key && backPath !== '/'
? 'Back'
: 'Home'}
</RouterLink>
Expand Down

0 comments on commit f9dd64c

Please sign in to comment.