From 0c197558a1046f6107f6b30febd4a7152d77812a Mon Sep 17 00:00:00 2001 From: Philip Allgaier Date: Thu, 19 Nov 2020 22:53:21 +0100 Subject: [PATCH] Close notification drawer when last entry is dismissed (#7724) --- src/dialogs/notifications/notification-drawer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialogs/notifications/notification-drawer.js b/src/dialogs/notifications/notification-drawer.js index cc3dc592e3..d15ac99857 100644 --- a/src/dialogs/notifications/notification-drawer.js +++ b/src/dialogs/notifications/notification-drawer.js @@ -164,7 +164,7 @@ export class HuiNotificationDrawer extends EventsMixin( if ( this.open && oldNotifications.length > 0 && - !newNotifications.length === 0 + newNotifications.length === 0 ) { this.open = false; }