mirror of
https://github.com/flarum/framework.git
synced 2025-03-02 17:31:54 +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…
x
Reference in New Issue
Block a user