From 7f1613dd20bd09d32006ff3d6eb771781916a2bd Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Tue, 12 Oct 2021 13:54:23 -0500 Subject: [PATCH] ScrollableList: remove accidental changes in commit --- app/soapbox/components/scrollable_list.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/soapbox/components/scrollable_list.js b/app/soapbox/components/scrollable_list.js index 7c521c9d0..0e6c1991b 100644 --- a/app/soapbox/components/scrollable_list.js +++ b/app/soapbox/components/scrollable_list.js @@ -108,7 +108,6 @@ export default class ScrollableList extends PureComponent { } componentDidUpdate(prevProps, prevState, snapshot) { - console.log(snapshot); // Reset the scroll position when a new child comes in in order not to // jerk the scrollbar around if you're already scrolled down the page. if (snapshot !== null) { @@ -261,7 +260,7 @@ export default class ScrollableList extends PureComponent { } renderFeed = () => { - const { children, scrollKey, isLoading, hasMore, prepend, onLoadMore, placeholderComponent: Placeholder, placeholderCount } = this.props; + const { children, scrollKey, isLoading, hasMore, prepend, onLoadMore } = this.props; const childrenCount = React.Children.count(children); const trackScroll = true; //placeholder const loadMore = (hasMore && onLoadMore) ? : null; @@ -288,11 +287,6 @@ export default class ScrollableList extends PureComponent { })} ))} - {(isLoading && Placeholder && placeholderCount > 0) && ( - Array(placeholderCount).fill().map((_, i) => ( - - )) - )} {this.getMoreFollows()} {loadMore}