MOBILE-3068 core: Fix not an object error in newTab.enabled
This commit is contained in:
		
							parent
							
								
									0e1bb20c9e
								
							
						
					
					
						commit
						991e170fd0
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user