Removed useless info
This commit is contained in:
@@ -266,15 +266,11 @@ const BotsManagement: React.FC<BotsManagementProps> = ({ token, logoutUser }) =>
|
|||||||
<TableHeader>
|
<TableHeader>
|
||||||
<TableRow>
|
<TableRow>
|
||||||
<TableHead>Client ID</TableHead>
|
<TableHead>Client ID</TableHead>
|
||||||
<TableHead>Assigned Discord ID (Name)</TableHead>
|
|
||||||
</TableRow>
|
</TableRow>
|
||||||
</TableHeader>
|
</TableHeader>
|
||||||
<TableBody>
|
<TableBody>
|
||||||
{bots.length > 0 ? (
|
{bots.length > 0 ? (
|
||||||
bots.map((botClientId) => {
|
bots.map((botClientId) => {
|
||||||
const assignedSystem = systems.find(sys => sys.avail_on_nodes.includes(botClientId));
|
|
||||||
const assignedDiscordBot = discordIds.find(did => did.name === assignedSystem?.name);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<TableRow key={botClientId}>
|
<TableRow key={botClientId}>
|
||||||
<TableCell className="font-medium">
|
<TableCell className="font-medium">
|
||||||
@@ -282,9 +278,6 @@ const BotsManagement: React.FC<BotsManagementProps> = ({ token, logoutUser }) =>
|
|||||||
{botClientId}
|
{botClientId}
|
||||||
</Link>
|
</Link>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell>
|
|
||||||
{assignedSystem ? `${assignedSystem.name} (System)` : "N/A or requires different mapping"}
|
|
||||||
</TableCell>
|
|
||||||
</TableRow>
|
</TableRow>
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user