Merge pull request #647 from vector-im/dbkr/fix_missing_key

Fix missing key in tab container
This commit is contained in:
David Baker 2022-10-24 10:02:18 +01:00 committed by GitHub
commit 247ed95976
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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} />