mirror of
https://github.com/flarum/framework.git
synced 2024-12-05 00:43:39 +08:00
Fix up post stream jumping to index
This commit is contained in:
parent
4a7bd67199
commit
49749a65a3
|
@ -385,7 +385,7 @@ export default class StreamScrubber extends Component {
|
||||||
// If the index we've landed on is in a gap, then tell the stream-
|
// If the index we've landed on is in a gap, then tell the stream-
|
||||||
// content that we want to load those posts.
|
// content that we want to load those posts.
|
||||||
var intIndex = Math.floor(this.index());
|
var intIndex = Math.floor(this.index());
|
||||||
if (!this.props.streamContent.props.stream.findNearestToIndex(intIndex).content) {
|
if (!this.props.streamContent.props.stream.findNearestToIndex(intIndex).post) {
|
||||||
this.props.streamContent.goToIndex(intIndex);
|
this.props.streamContent.goToIndex(intIndex);
|
||||||
} else {
|
} else {
|
||||||
this.props.streamContent.paused(false);
|
this.props.streamContent.paused(false);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user