From c0bf5f81fed7f5c233d94a101d9979ddfafe92c7 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Mon, 18 May 2015 10:37:47 +0930 Subject: [PATCH] Fix sometimes trying to jump to NaN in the stream --- framework/core/js/forum/src/components/discussion-page.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/forum/src/components/discussion-page.js b/framework/core/js/forum/src/components/discussion-page.js index 4dc80754e..607d2eae3 100644 --- a/framework/core/js/forum/src/components/discussion-page.js +++ b/framework/core/js/forum/src/components/discussion-page.js @@ -31,7 +31,7 @@ export default class DiscussionPage extends Component { // its posts relationship has been loaded (i.e. we've viewed this // discussion before), then we can proceed with displaying it immediately. // If not, we'll make an API request first. - this.currentNear = m.route.param('near'); + this.currentNear = m.route.param('near') || 0; var params = this.params(); params.include = params.include.join(','); app.store.find('discussions', m.route.param('id'), params).then(this.setupDiscussion.bind(this));