forked from EVOgeek/Vmeda.Online
		
	MOBILE-3833 core: Fix getAnimations when not available
This commit is contained in:
		
							parent
							
								
									a4c60925d9
								
							
						
					
					
						commit
						22178c6aef
					
				@ -107,7 +107,7 @@ export class CoreCollapsibleHeaderDirective implements OnDestroy {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        // Wait animations to finish.
 | 
					        // Wait animations to finish.
 | 
				
			||||||
        const animations = this.content.getAnimations();
 | 
					        const animations = (this.content.getAnimations && this.content.getAnimations()) || [];
 | 
				
			||||||
        await Promise.all(animations.map(async (animation) => {
 | 
					        await Promise.all(animations.map(async (animation) => {
 | 
				
			||||||
            await animation.finished;
 | 
					            await animation.finished;
 | 
				
			||||||
        }));
 | 
					        }));
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user