Skip to content

Commit 5ef491b

Browse files
list targes in frontend
1 parent 9847aee commit 5ef491b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/components/ResourcesTable.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ export default function ResourcesTable({
392392
},
393393
cell: ({ row }) => {
394394
const resourceRow = row.original as ResourceRow & {
395-
targets?: { host: string; port: number }[];
395+
targets?: { ip: string; port: number }[];
396396
};
397397

398398
const targets = resourceRow.targets ?? [];
@@ -418,12 +418,10 @@ export default function ResourcesTable({
418418

419419
<DropdownMenuContent align="start" className="min-w-[200px]">
420420
{targets.map((target, idx) => {
421-
const key = `${resourceRow.id}:${target.host}:${target.port}`;
422-
423421
return (
424422
<DropdownMenuItem key={idx} className="flex items-center gap-2">
425423
<CopyToClipboard
426-
text={`${target.host}:${target.port}`}
424+
text={`${target.ip}:${target.port}`}
427425
isLink={false}
428426
/>
429427
</DropdownMenuItem>

0 commit comments

Comments
 (0)