mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 07:03:35 +08:00
Prevent JS error for now
This commit is contained in:
parent
7a7ed695e2
commit
5115b6fb09
|
@ -82,13 +82,14 @@ export default class DiscussionPage extends Component {
|
||||||
|
|
||||||
// Hold up there skippy! If the slug in the URL doesn't match up, we'll
|
// Hold up there skippy! If the slug in the URL doesn't match up, we'll
|
||||||
// redirect so we have the correct one.
|
// redirect so we have the correct one.
|
||||||
if (m.route.param('id') === discussion.id() && m.route.param('slug') !== discussion.slug()) {
|
// Waiting on https://github.com/lhorie/mithril.js/issues/539
|
||||||
var params = m.route.param();
|
// if (m.route.param('id') === discussion.id() && m.route.param('slug') !== discussion.slug()) {
|
||||||
params.slug = discussion.slug();
|
// var params = m.route.param();
|
||||||
params.near = params.near || '';
|
// params.slug = discussion.slug();
|
||||||
m.route(app.route('discussion.near', params), null, true);
|
// params.near = params.near || '';
|
||||||
return;
|
// m.route(app.route('discussion.near', params), null, true);
|
||||||
}
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
this.streamContent.goToNumber(this.currentNear, true);
|
this.streamContent.goToNumber(this.currentNear, true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user