pick first port on select container

This commit is contained in:
miloschwartz 2025-06-09 13:01:53 -04:00
parent 9177eaba22
commit cd54e7dd38
No known key found for this signature in database

View file

@ -346,16 +346,19 @@ const DockerContainersTable: FC<{
{
id: "actions",
header: "Actions",
cell: ({ row }) => (
cell: ({ row }) => {
const ports = getExposedPorts(row.original);
return (
<Button
variant="default"
size="sm"
onClick={() => onContainerSelect(row.original)}
onClick={() => onContainerSelect(row.original, ports[0])}
disabled={row.original.state !== "running"}
>
Select
</Button>
)
);
}
}
];