We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d10951 commit 00b0782Copy full SHA for 00b0782
playground/src/Editor/Diagnostics.tsx
@@ -67,10 +67,10 @@ function Items({
67
68
return (
69
<ul className="space-y-0.5 flex-grow overflow-y-scroll">
70
- {diagnostics.map((diagnostic) => {
+ {diagnostics.map((diagnostic, index) => {
71
72
<li
73
- key={`${diagnostic.location.row}:${diagnostic.location.column}-${diagnostic.code}`}
+ key={`${diagnostic.location.row}:${diagnostic.location.column}-${diagnostic.code ?? index}`}
74
>
75
<button
76
onClick={() =>
0 commit comments