From 9de786d1e6fc85460e361e88b8245cb6372e386b Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sun, 11 Nov 2018 16:46:54 +1030 Subject: [PATCH] Fix notification list not displaying "empty" message --- js/src/forum/components/NotificationList.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/src/forum/components/NotificationList.js b/js/src/forum/components/NotificationList.js index eebd8032b..640841c0a 100644 --- a/js/src/forum/components/NotificationList.js +++ b/js/src/forum/components/NotificationList.js @@ -178,7 +178,8 @@ export default class NotificationList extends Component { */ parseResults(results) { app.cache.notifications = app.cache.notifications || []; - app.cache.notifications.push(results); + + if (results.length) app.cache.notifications.push(results); this.moreResults = !!results.payload.links.next;