MOBILE-3833 core: Fix getAnimations when not available

main
Pau Ferrer Ocaña 2021-12-15 12:59:27 +01:00
parent a4c60925d9
commit 22178c6aef
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ export class CoreCollapsibleHeaderDirective implements OnDestroy {
}
// 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 animation.finished;
}));