Merge pull request #2075 from dpalou/MOBILE-3068
MOBILE-3068 core: Fix not an object error in newTab.enabledmain
commit
8e769ffc47
|
@ -488,7 +488,7 @@ export class CoreTabsComponent implements OnInit, AfterViewInit, OnChanges, OnDe
|
||||||
const currentTab = this.getSelected(),
|
const currentTab = this.getSelected(),
|
||||||
newTab = this.tabs[index];
|
newTab = this.tabs[index];
|
||||||
|
|
||||||
if (!newTab.enabled || !newTab.show) {
|
if (!newTab || !newTab.enabled || !newTab.show) {
|
||||||
// The tab isn't enabled or shown, stop.
|
// The tab isn't enabled or shown, stop.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue