Fix up post stream jumping to index

This commit is contained in:
Toby Zerner 2015-05-14 22:20:47 +09:30
parent 4a7bd67199
commit 49749a65a3

View File

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