Unverified Commit a628e634 authored by Tobias Koppers's avatar Tobias Koppers Committed by GitHub

avoid key conflict (#58249)

### What?

gives all elements in the array unique keys

should fix #57709 and fix #57743
parent e2f3059b
...@@ -97,7 +97,7 @@ export function getLayerAssets({ ...@@ -97,7 +97,7 @@ export function getLayerAssets({
? scriptTags.map((href, index) => { ? scriptTags.map((href, index) => {
const fullSrc = `${ctx.assetPrefix}/_next/${href}` const fullSrc = `${ctx.assetPrefix}/_next/${href}`
return <script src={fullSrc} async={true} key={index} /> return <script src={fullSrc} async={true} key={`script-${index}`} />
}) })
: [] : []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment