From 22178c6aef0ce7d6b83f98b1d82f5fa9132b0ec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Wed, 15 Dec 2021 12:59:27 +0100 Subject: [PATCH] MOBILE-3833 core: Fix getAnimations when not available --- src/core/directives/collapsible-header.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/directives/collapsible-header.ts b/src/core/directives/collapsible-header.ts index 656d5d15e..0249849c3 100644 --- a/src/core/directives/collapsible-header.ts +++ b/src/core/directives/collapsible-header.ts @@ -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; }));