Prevent JS error for now

This commit is contained in:
Toby Zerner 2015-05-14 22:14:38 +09:30
parent 7a7ed695e2
commit 5115b6fb09

View File

@ -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);
} }