mirror of
https://github.com/flarum/framework.git
synced 2024-12-03 07:33:36 +08:00
Fix sometimes trying to jump to NaN in the stream
This commit is contained in:
parent
e77d0e0786
commit
c0bf5f81fe
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue
Block a user