Merge pull request #647 from vector-im/dbkr/fix_missing_key
Fix missing key in tab container
This commit is contained in:
commit
247ed95976
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ export function TabContainer<T extends object>(
|
|||
<div className={classNames(styles.tabContainer, props.className)}>
|
||||
<ul {...tabListProps} ref={ref} className={styles.tabList}>
|
||||
{[...state.collection].map((item) => (
|
||||
<Tab item={item} state={state} />
|
||||
<Tab item={item} state={state} key={item.key} />
|
||||
))}
|
||||
</ul>
|
||||
<TabPanel key={state.selectedItem?.key} state={state} />
|
||||
|
|
Loading…
Reference in a new issue