Skip to content

Commit

Permalink
Tab bar npe fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyanziano committed Dec 6, 2018
1 parent 9c0d5bc commit 0dc4fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/client/src/ui/shell/mdi/tabBar/tabBar.tsx
Expand Up @@ -162,7 +162,7 @@ export class TabBar extends React.Component<TabBarProps, TabBarState> {

private get tabs(): JSX.Element[] {
return this.props.tabOrder.map((documentId, index) => {
const document = this.props.documents[documentId];
const document = this.props.documents[documentId] || {};
const isActive = documentId === this.props.activeDocumentId;

return (
Expand Down

0 comments on commit 0dc4fa7

Please sign in to comment.