Skip to content

Commit

Permalink
fix: title null check
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jul 7, 2020
1 parent b3bf9e8 commit 03410d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/app/src/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const App: FC<AppProps> = ({ title = '', children }) => {
text: 'skip to context sidebar',
});
}
const titleParts = title.split('/');
const titleParts = title ? title.split('/') : [''];
const pageTitle = titleParts[titleParts.length - 1];
return (
<Fragment>
Expand Down

0 comments on commit 03410d8

Please sign in to comment.