mirror of
https://github.com/flarum/core.git
synced 2025-07-21 16:51:34 +02:00
Fix up post stream jumping to index
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user