Skip to content

Commit

Permalink
add key
Browse files Browse the repository at this point in the history
  • Loading branch information
Nurudeen38 committed Nov 28, 2022
1 parent 47ee043 commit f9be3d8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions web/src/server/ServerList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import React, { useEffect } from "react";
import { useNavigate } from "react-router-dom";
import { ReactComponent as ServerIcon } from "assets/svg/server.svg";
import LoadingContent from "common/LoadingContent";
import ThemeConfig, { theme } from "ThemeConfig";
import useSocket from "hooks/useSocket";
import ThemeConfig from "ThemeConfig";
import { ServerGroupedByHostResponseType } from "./ServerType";
import AppHeader from "AppHeader";

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

0 comments on commit f9be3d8

Please sign in to comment.