Skip to content

Commit 00b0782

Browse files
authored
Fix stale syntax errors in playground (#13888)
1 parent 4d10951 commit 00b0782

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

playground/src/Editor/Diagnostics.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ function Items({
6767

6868
return (
6969
<ul className="space-y-0.5 flex-grow overflow-y-scroll">
70-
{diagnostics.map((diagnostic) => {
70+
{diagnostics.map((diagnostic, index) => {
7171
return (
7272
<li
73-
key={`${diagnostic.location.row}:${diagnostic.location.column}-${diagnostic.code}`}
73+
key={`${diagnostic.location.row}:${diagnostic.location.column}-${diagnostic.code ?? index}`}
7474
>
7575
<button
7676
onClick={() =>

0 commit comments

Comments
 (0)