rustic-ai / ui-components

React component library for crafting user-friendly and engaging conversational experiences
https://rustic-ai.github.io/ui-components/
MIT License
43 stars 10 forks source link

Table shows incorrect data #39

Closed Shiti closed 2 months ago

Shiti commented 2 months ago

Describe the bug When fields are missing, table shows data and styles it incorrectly

To Reproduce Steps to reproduce the behavior:

  1. Run the code
    <Table
    data={[
    {
      priority: 'high',
      task: 'asdf'
    },
    {
      col2: 'medium',
      task: 'jkl;'
    }
    ]}
    headers={[
    'task',
    'priority'
    ]}
    />

    Expected behavior I expected no data to be visible for the second row's priority column.

Screenshots Screenshot from 2024-03-20 18-34-13

Please complete the following information: