Fix error adding notifications into list after the list s been cleared

This commit is contained in:
Hadi Nategh 2021-03-08 15:54:33 +01:00
parent e7ee06f66b
commit 1fdec427d9

View File

@ -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();