mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-14 17:26:26 +01:00
🐛 Fix the leading slash when adding container via docker (#1478)
This commit is contained in:
@@ -26,7 +26,7 @@ export const DockerSelectBoardModal = ({ id, innerProps }: ContextModalProps<Inn
|
|||||||
await mutateAsync(
|
await mutateAsync(
|
||||||
{
|
{
|
||||||
apps: innerProps.containers.map((container) => ({
|
apps: innerProps.containers.map((container) => ({
|
||||||
name: container.Names.at(0) ?? 'App',
|
name: (container.Names.at(0) ?? 'App').replace('/', ''),
|
||||||
port: container.Ports.at(0)?.PublicPort,
|
port: container.Ports.at(0)?.PublicPort,
|
||||||
})),
|
})),
|
||||||
boardName: values.board,
|
boardName: values.board,
|
||||||
|
|||||||
Reference in New Issue
Block a user