mirror of
https://github.com/flarum/core.git
synced 2025-07-19 15:51:16 +02:00
Fixed error when user is not logged in; fixed notification count not updating when clicking home link (added m.redraw)
This commit is contained in:
@@ -238,8 +238,10 @@ export default class IndexPage extends Page {
|
||||
className: 'Button Button--icon',
|
||||
onclick: () => {
|
||||
app.cache.discussionList.refresh();
|
||||
app.store.find('users', app.session.user.id());
|
||||
m.redraw();
|
||||
if (app.session.user) {
|
||||
app.store.find('users', app.session.user.id());
|
||||
m.redraw();
|
||||
}
|
||||
}
|
||||
})
|
||||
);
|
||||
|
Reference in New Issue
Block a user