From e02b18d08e319fe9ad11ac2002dcf9db3fc6b102 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 --- framework/core/js/src/forum/components/NotificationList.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/framework/core/js/src/forum/components/NotificationList.js b/framework/core/js/src/forum/components/NotificationList.js index eebd8032b..640841c0a 100644 --- a/framework/core/js/src/forum/components/NotificationList.js +++ b/framework/core/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;