Skip to content

Commit

Permalink
fix elements needing key warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eriktaubeneck committed Jul 19, 2024
1 parent 73370e9 commit b0d667b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions server/app/query/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ export default function Page() {
remoteServer.remoteServerName
];
if (statusEvent === null) {
return <></>;
return (
<div key={remoteServer.remoteServerName}></div>
);
}

return (
Expand Down Expand Up @@ -159,7 +161,9 @@ export default function Page() {
remoteServer.remoteServerName
];
if (statusEvent === null) {
return <></>;
return (
<div key={remoteServer.remoteServerName}></div>
);
}

return (
Expand Down
4 changes: 2 additions & 2 deletions server/app/query/view/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export default function QueryPage({ params }: { params: { id: string } }) {
const statusEvent: StatusEvent | null =
statusEventByRemoteServer[remoteServer.remoteServerName];
if (statusEvent === null) {
return <></>;
return <div key={remoteServer.remoteServerName}></div>;
}

return (
Expand Down Expand Up @@ -269,7 +269,7 @@ export default function QueryPage({ params }: { params: { id: string } }) {
const statusEvent: StatusEvent | null =
statusEventByRemoteServer[remoteServer.remoteServerName];
if (statusEvent === null) {
return <></>;
return <div key={remoteServer.remoteServerName}></div>;
}

return (
Expand Down

0 comments on commit b0d667b

Please sign in to comment.