Merge pull request #2075 from dpalou/MOBILE-3068
MOBILE-3068 core: Fix not an object error in newTab.enabled
This commit is contained in:
		
						commit
						8e769ffc47
					
				| @ -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; | ||||
|         } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user