add check for close method

This commit is contained in:
Mads Rasmussen
2022-08-10 15:09:05 +02:00
parent 5bd902852d
commit 26e1f8060d

View File

@@ -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?.();
}
/**