mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Change react key to use unique string with index
GitOrigin-RevId: 591cda98d0a34c777cc8a41b2ec64119a1226dfb
This commit is contained in:
parent
c008a1aece
commit
7e5ccecc7c
1 changed files with 2 additions and 2 deletions
|
@ -24,8 +24,8 @@ export default function SyncMenu() {
|
|||
<>
|
||||
<h4>{t('sync')}</h4>
|
||||
<ul className="list-unstyled nav">
|
||||
{editorLeftMenuSync.map(({ import: importObject }) => (
|
||||
<li key={Object.keys(importObject)[0]}>
|
||||
{editorLeftMenuSync.map(({ import: importObject }, index) => (
|
||||
<li key={`editor-left-menu-sync-${index}`}>
|
||||
<ModuleComponent Component={Object.values(importObject)[0]} />
|
||||
</li>
|
||||
))}
|
||||
|
|
Loading…
Reference in a new issue