🐛 Make PublicPort for Docker containers nullable

Fixes #585
This commit is contained in:
ajnart
2023-01-19 08:23:44 +09:00
parent e950987359
commit e6295398aa

View File

@@ -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,