]> cat aescling's git repositories - mastodon.git/commitdiff
[Glitch] Fix LoadMore usage in account media gallery
authorThibaut Girka <thib@sitedethib.com>
Tue, 11 Dec 2018 17:51:01 +0000 (18:51 +0100)
committerThibG <thib@sitedethib.com>
Thu, 13 Dec 2018 14:00:36 +0000 (15:00 +0100)
(Even though that codepath is probably never actually used…)

app/javascript/flavours/glitch/features/account_gallery/index.js

index 53b906d162d5407efab9c2755cd93d9718ba2a56..0405af2c33c9cf06e3faf10928c53f2757b5b391 100644 (file)
@@ -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