From 26e1f8060d2f11fe309c111e79cc370e10c83ee2 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Wed, 10 Aug 2022 15:09:05 +0200 Subject: [PATCH] add check for close method --- .../src/core/services/notification/notification-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/core/services/notification/notification-handler.ts b/src/Umbraco.Web.UI.Client/src/core/services/notification/notification-handler.ts index ccae505254..d1bd93d2e0 100644 --- a/src/Umbraco.Web.UI.Client/src/core/services/notification/notification-handler.ts +++ b/src/Umbraco.Web.UI.Client/src/core/services/notification/notification-handler.ts @@ -71,7 +71,7 @@ export class UmbNotificationHandler { public close(...args: any) { this._closeResolver(...args); // TODO: make public close method on uui-toast-notification - this.element._makeClose(); + this.element._makeClose?.(); } /**