mirror of
https://github.com/flarum/framework.git
synced 2024-12-02 23:23:52 +08:00
Fix notification list not displaying "empty" message
This commit is contained in:
parent
b68f183e86
commit
e02b18d08e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user