From 1fdec427d9509e26ad5b3d7ab2939bc2a92cbee0 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 8 Mar 2021 15:54:33 +0100 Subject: [PATCH] Fix error adding notifications into list after the list s been cleared --- notifications/js/notificationajaxpopup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifications/js/notificationajaxpopup.js b/notifications/js/notificationajaxpopup.js index 3114cf5cb3..bd824a3024 100644 --- a/notifications/js/notificationajaxpopup.js +++ b/notifications/js/notificationajaxpopup.js @@ -659,7 +659,7 @@ // Dont process the data if they're the same as it could get very expensive to // proccess html their content. if (_currentRawData.length>0 && _currentRawData.length == _rawData.length) return; - _currentRawData = _rawData; + _currentRawData = _rawData || []; var old_notifymessages = notifymessages; notifymessages = {}; var browser_notify = _browser_notify || this.check_browser_notify();