[Dashboard] Page now resets to zero when rows per page is changed in "Add from Library" panel (#118627) (#118737)

* Page now resets to 0 when rows per page is changed.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Hannah Mudge <Heenawter@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2021-11-16 13:42:00 -05:00 committed by GitHub
parent 6711e57c71
commit 942f0467a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -512,6 +512,7 @@ class SavedObjectFinderUi extends React.Component<
}}
onChangeItemsPerPage={(perPage) => {
this.setState({
page: 0,
perPage,
});
}}