web: Components: Changed collection to detect hasNextPage

This commit is contained in:
Alexey Safronov 2019-11-06 13:40:25 +03:00
parent 89a87d01ec
commit 33f169e891

View File

@ -111,7 +111,7 @@ class ADSelectorExample extends React.Component {
);
this.setState({
hasNextPage: newOptions.length < this.props.total,
hasNextPage: options.length < this.props.total,
isNextPageLoading: false,
options: newOptions
});