Sometimes the discovery table adds an scroll that is of no use. This happens when we search for a value in the search bar that returns only 1 page of the table and then change the search to return more pages of results.
To Reproduce
Steps to reproduce the behavior:
Navigate to Discover
Click on the search bar input
Search for a value that returns just 1 page result
Search for another value that returns a few results
Describe the bug
Sometimes the discovery table adds an scroll that is of no use. This happens when we search for a value in the search bar that returns only 1 page of the table and then change the search to return more pages of results.
To Reproduce Steps to reproduce the behavior:
Expected behavior
It shouldn't render a scroll in the table
Screenshots
https://github.com/opensearch-project/oui/assets/63758389/317b7873-300b-4778-a4ce-4d0cee488adb
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.