mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -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>
|
<h4>{t('sync')}</h4>
|
||||||
<ul className="list-unstyled nav">
|
<ul className="list-unstyled nav">
|
||||||
{editorLeftMenuSync.map(({ import: importObject }) => (
|
{editorLeftMenuSync.map(({ import: importObject }, index) => (
|
||||||
<li key={Object.keys(importObject)[0]}>
|
<li key={`editor-left-menu-sync-${index}`}>
|
||||||
<ModuleComponent Component={Object.values(importObject)[0]} />
|
<ModuleComponent Component={Object.values(importObject)[0]} />
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
|
|
Loading…
Reference in a new issue