Skip to content

Commit

Permalink
fix: first tab selection was throwing an error
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Sep 15, 2017
1 parent 77ac6db commit 50e2d98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/ui/src/utility/tabs/tabs.component.ts
Expand Up @@ -30,7 +30,9 @@ export class TabsComponent {
}

select(tab: TabComponent) {
this.selected.deactivated.next();
if (this.selected) {
this.selected.deactivated.next();
}
this.selected = tab;
tab.activated.next();
}
Expand Down

0 comments on commit 50e2d98

Please sign in to comment.