list targes in frontend

This commit is contained in:
Pallavi
2025-09-03 00:57:46 +05:30
committed by Pallavi Kumari
parent f21188000e
commit 8e5dde887c

View File

@@ -420,7 +420,7 @@ export default function ResourcesTable({
},
cell: ({ row }) => {
const resourceRow = row.original as ResourceRow & {
targets?: { host: string; port: number }[];
targets?: { ip: string; port: number }[];
};
const targets = resourceRow.targets ?? [];
@@ -446,12 +446,10 @@ export default function ResourcesTable({
<DropdownMenuContent align="start" className="min-w-[200px]">
{targets.map((target, idx) => {
const key = `${resourceRow.id}:${target.host}:${target.port}`;
return (
<DropdownMenuItem key={idx} className="flex items-center gap-2">
<CopyToClipboard
text={`${target.host}:${target.port}`}
text={`${target.ip}:${target.port}`}
isLink={false}
/>
</DropdownMenuItem>