Merge pull request #2075 from dpalou/MOBILE-3068

MOBILE-3068 core: Fix not an object error in newTab.enabled
main
Dani Palou 2019-08-26 13:52:53 +02:00 committed by GitHub
commit 8e769ffc47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}