1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 09:26:34 +02:00

fix: DiscussionPage not updating when switching to a separate discussion (using pane)

This commit is contained in:
David Sevilla Martin
2020-08-11 11:45:35 -04:00
committed by Franz Liedke
parent b0cbe277c2
commit a083876b5f

View File

@@ -95,7 +95,9 @@ export default class DiscussionPage extends Page {
);
}
onupdate(vnode) {
onbeforeupdate(vnode) {
super.onbeforeupdate(vnode);
if (m.route.get() !== this.prevRoute) {
this.prevRoute = m.route.get();
@@ -113,6 +115,8 @@ export default class DiscussionPage extends Page {
}
this.near = near;
} else {
this.oninit(vnode);
}
}
}