diff --git a/src/modules/Docker/ContainerActionBar.tsx b/src/modules/Docker/ContainerActionBar.tsx index 0d0a1f968..1382cfc96 100644 --- a/src/modules/Docker/ContainerActionBar.tsx +++ b/src/modules/Docker/ContainerActionBar.tsx @@ -164,7 +164,7 @@ export default function ContainerActionBar({ selected, reload }: ContainerAction disabled={selected.length === 0 || selected.length > 1} onClick={() => { const app = tryMatchService(selected.at(0)!); - const containerUrl = `http://localhost:${selected[0].Ports[0].PublicPort}`; + const containerUrl = `http://localhost:${selected[0].Ports[0]?.PublicPort ?? 0}`; openContextModalGeneric<{ app: AppType; allowAppNamePropagation: boolean }>({ modal: 'editApp', zIndex: 1000,