From 991e170fd0a6c3fe7199ab6f3d61ebd6ee4020b7 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Mon, 26 Aug 2019 12:26:24 +0200 Subject: [PATCH] MOBILE-3068 core: Fix not an object error in newTab.enabled --- src/components/tabs/tabs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }