this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Better keys

+7 -3
+7 -3
src/components/shortcuts.jsx
··· 101 101 {formattedShortcuts.map( 102 102 ({ id, path, title, subtitle, icon }, i) => { 103 103 return ( 104 - <li key={i + title}> 104 + <li key={`${i}-${id}-${title}-${subtitle}-${path}`}> 105 105 <Link 106 106 class={subtitle ? 'has-subtitle' : ''} 107 107 to={path} ··· 170 170 </button> 171 171 } 172 172 > 173 - {formattedShortcuts.map(({ path, title, subtitle, icon }, i) => { 173 + {formattedShortcuts.map(({ id, path, title, subtitle, icon }, i) => { 174 174 return ( 175 - <MenuLink to={path} key={i + title} class="glass-menu-item"> 175 + <MenuLink 176 + to={path} 177 + key={`${i}-${id}-${title}-${subtitle}-${path}`} 178 + class="glass-menu-item" 179 + > 176 180 <Icon icon={icon} size="l" />{' '} 177 181 <span class="menu-grow"> 178 182 <span>