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; }));