[Glitch] Fix “load more” button when no data has been fetched

This commit is contained in:
Thibaut Girka
2018-12-12 17:00:31 +01:00
committed by ThibG
parent 2d097c10d0
commit 1e656c3632
2 changed files with 2 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ export default class AccountGallery extends ImmutablePureComponent {
handleScrollToBottom = () => {
if (this.props.hasMore) {
this.handleLoadMore(this.props.medias.last().getIn(['status', 'id']));
this.handleLoadMore(this.props.medias.size > 0 ? this.props.medias.last().getIn(['status', 'id']) : undefined);
}
}