Fix notification list not displaying "empty" message

This commit is contained in:
Toby Zerner 2018-11-11 16:46:54 +10:30
parent b68f183e86
commit e02b18d08e

View File

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