mirror of
https://github.com/flarum/core.git
synced 2025-07-18 23:31:17 +02:00
Fix notification list not displaying "empty" message
This commit is contained in:
@@ -178,7 +178,8 @@ export default class NotificationList extends Component {
|
|||||||
*/
|
*/
|
||||||
parseResults(results) {
|
parseResults(results) {
|
||||||
app.cache.notifications = app.cache.notifications || [];
|
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;
|
this.moreResults = !!results.payload.links.next;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user