Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG][Data Explorer][Discover] Allow data grid to auto adjust size based on fetched data count #5191

Merged
merged 1 commit into from
Oct 3, 2023

Commits on Oct 3, 2023

  1. [BUG][Data Explorer][Discover] Allow data grid to auto adjust size ba…

    …sed on fetched data count
    
    * This PR adds a new rows state to the DiscoverCanvas component and updated it whenever
    the data$ observable emitted new row data.
    * The DiscoverTable component was then refactored to accept rows as a prop, making it
    dependent on the parent component to provide the correct set of data. This ensures that the table
    renders correctly based on the current data and doesn't rely on its internal state,
    which could be outdated.
    
    Issue Resolve
    opensearch-project#5181
    
    Signed-off-by: ananzh <[email protected]>
    ananzh committed Oct 3, 2023
    Configuration menu
    Copy the full SHA
    a33d25f View commit details
    Browse the repository at this point in the history