🐛 Fix the leading slash when adding container via docker (#1478)

This commit is contained in:
Thomas Camlong
2023-10-22 17:59:47 +02:00
committed by GitHub
parent 6bcef9e24c
commit a41bee0d44

View File

@@ -26,7 +26,7 @@ export const DockerSelectBoardModal = ({ id, innerProps }: ContextModalProps<Inn
await mutateAsync(
{
apps: innerProps.containers.map((container) => ({
name: container.Names.at(0) ?? 'App',
name: (container.Names.at(0) ?? 'App').replace('/', ''),
port: container.Ports.at(0)?.PublicPort,
})),
boardName: values.board,