Fix notification list not displaying "empty" message

This commit is contained in:
Toby Zerner 2018-11-11 16:46:54 +10:30
parent b92ae61294
commit 9de786d1e6

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;