Skip to content

EuiTabbedContent TypeError: Cannot read property 'content' of undefined #3450

Closed

Description

@frank-mendez

I tried to create a dynamic tab content
const tabs = [];
credentials.map((item) => {
tabs.push({
id: item.ID + '--id',
name: item.credential_name,
content: (
<Fragment>
<EuiText>Test</EuiText>
</Fragment>
),
});
});

Returns TypeError: Cannot read property 'content' of undefined

Activity

  1. frank-mendez commented on May 9, 2020

    @frank-mendez
    Author

    <EuiTabbedContent
    tabs={tabs}
    initialSelectedTab={tabs[0]}
    autoFocus='selected'
    onTabClick={(tab) => {
    console.log('clicked tab', tab);
    }}
    />

  2. cchaos commented on May 11, 2020

    @cchaos
    Contributor

    HI @frank-mendez , I just tested your example and couldn't get the same error. Were you able to get it working or could you explain more of your implementation details?

  3. snide commented on Sep 18, 2020

    @snide
    Contributor

    This issue has gone stale. If you're still seeing an issue please let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions