Merge pull request #589 from ajnart/585-add-docker-container-to-homarr-doesnt-bring-popup-configuration-window

This commit is contained in:
Thomas Camlong
2023-01-20 11:07:19 +09:00
committed by GitHub

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,