mirror of
https://github.com/flarum/framework.git
synced 2025-04-24 21:54:04 +08:00
Fix notification list not displaying "empty" message
This commit is contained in:
parent
b92ae61294
commit
9de786d1e6
@ -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