Fix stale syntax errors in playground (#13888)

This commit is contained in:
Micha Reiser 2024-10-23 14:30:10 +02:00 committed by GitHub
parent 4d109514d6
commit 00b078268b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -67,10 +67,10 @@ function Items({
return (
<ul className="space-y-0.5 flex-grow overflow-y-scroll">
{diagnostics.map((diagnostic) => {
{diagnostics.map((diagnostic, index) => {
return (
<li
key={`${diagnostic.location.row}:${diagnostic.location.column}-${diagnostic.code}`}
key={`${diagnostic.location.row}:${diagnostic.location.column}-${diagnostic.code ?? index}`}
>
<button
onClick={() =>