mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-19 20:38:19 +00:00
nav tabs key attribute fixed
This commit is contained in:
parent
239a05ac88
commit
317405157d
1 changed files with 2 additions and 2 deletions
|
|
@ -25,9 +25,9 @@ const NavBar = React.memo(({ className, backButton = false, tabs = [], title = '
|
|||
}
|
||||
{
|
||||
Array.isArray(tabs) && tabs.length > 0 ?
|
||||
tabs.slice(0, 4).map(({ href, icon, label, onClick }) => (
|
||||
tabs.slice(0, 4).map(({ href = '', icon = '', label = '', onClick }) => (
|
||||
<NavBarButton
|
||||
key={href}
|
||||
key={`${href}${icon}${label}`}
|
||||
className={styles['nav-bar-button']}
|
||||
href={href}
|
||||
icon={icon}
|
||||
|
|
|
|||
Loading…
Reference in a new issue