diff --git a/src/components/tabs/tabs.ts b/src/components/tabs/tabs.ts index bf1b3c6cd..ba7b9fdb1 100644 --- a/src/components/tabs/tabs.ts +++ b/src/components/tabs/tabs.ts @@ -488,7 +488,7 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe const currentTab = this.getSelected(), newTab = this.tabs[index]; - if (!newTab.enabled || !newTab.show) { + if (!newTab || !newTab.enabled || !newTab.show) { // The tab isn't enabled or shown, stop. return; }