Skip to content

Commit f9be3d8

Browse files
committed
add key
1 parent 47ee043 commit f9be3d8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Diff for: web/src/server/ServerList.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ import React, { useEffect } from "react";
44
import { useNavigate } from "react-router-dom";
55
import { ReactComponent as ServerIcon } from "assets/svg/server.svg";
66
import LoadingContent from "common/LoadingContent";
7-
import ThemeConfig, { theme } from "ThemeConfig";
8-
import useSocket from "hooks/useSocket";
7+
import ThemeConfig from "ThemeConfig";
98
import { ServerGroupedByHostResponseType } from "./ServerType";
109
import AppHeader from "AppHeader";
1110

@@ -35,7 +34,7 @@ export default function ServerList({
3534
<Grid container spacing={2} my={10}>
3635
{Object.keys(serversGroupedByHost)?.map(
3736
(serverHost: string, index: number) => (
38-
<Grid item xs={12} md={6}>
37+
<Grid item xs={12} md={6} key={index}>
3938
<Card
4039
key={index}
4140
style={{ background: ThemeConfig.palette.primary.light }}

0 commit comments

Comments
 (0)