From d2d23379baa323c0c895a72e380651979032fa34 Mon Sep 17 00:00:00 2001 From: zxj96 <519213124@qq.com> Date: Wed, 24 Apr 2019 15:24:27 +0800 Subject: [PATCH] merge code --- frontend/src/pages/lib-content-view/lib-content-view.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/src/pages/lib-content-view/lib-content-view.js b/frontend/src/pages/lib-content-view/lib-content-view.js index 8794c3d3a4..444df4d59c 100644 --- a/frontend/src/pages/lib-content-view/lib-content-view.js +++ b/frontend/src/pages/lib-content-view/lib-content-view.js @@ -413,8 +413,7 @@ class LibContentView extends React.Component { } onListContainerScroll = () => { - let itemsShowLength = this.state.itemsShowLength; - itemsShowLength += 100; + let itemsShowLength = this.state.itemsShowLength + 100; this.setState({itemsShowLength: itemsShowLength}); }