diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-12-11 18:51:01 +0100 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-12-13 15:00:36 +0100 |
commit | 5f581d7c3c1a93cd8816e9f11cf8f7cef7c3478f (patch) | |
tree | 3868b667f3bf9f8d3b7cbd227357af4fd1756e84 | |
parent | 73ee38f485b5a61c0d1adbf10315789e4abc67a4 (diff) |
[Glitch] Fix LoadMore usage in account media gallery
(Even though that codepath is probably never actually used…)
-rw-r--r-- | app/javascript/flavours/glitch/features/account_gallery/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/account_gallery/index.js b/app/javascript/flavours/glitch/features/account_gallery/index.js index 53b906d16..0405af2c3 100644 --- a/app/javascript/flavours/glitch/features/account_gallery/index.js +++ b/app/javascript/flavours/glitch/features/account_gallery/index.js @@ -35,7 +35,7 @@ class LoadMoreMedia extends ImmutablePureComponent { return ( <LoadMore disabled={this.props.disabled} - onLoadMore={this.handleLoadMore} + onClick={this.handleLoadMore} /> ); } @@ -124,6 +124,7 @@ export default class AccountGallery extends ImmutablePureComponent { <LoadMoreMedia key={'more:' + medias.getIn(index + 1, 'id')} maxId={index > 0 ? medias.getIn(index - 1, 'id') : null} + onLoadMore={this.handleLoadMore} /> ) : ( <MediaItem |