1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-27 07:31:46 +01:00

fix: fixes broken host page on initial page load

This commit is contained in:
Amir Raminfar
2025-01-10 12:47:01 -08:00
parent 43e3f4cd9d
commit 11e1285158
2 changed files with 2 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ const store = useContainerStore();
const { containersByHost } = storeToRefs(store);
const { hosts } = useHosts();
const host = computed(() => hosts.value[id]);
const containers = computed(() => containersByHost.value?.[id].filter((c) => c.state === "running") ?? []);
const containers = computed(() => containersByHost.value?.[id]?.filter((c) => c.state === "running") ?? []);
const viewer = useTemplateRef<ComponentExposed<typeof ViewerWithSource>>("viewer");
provideLoggingContext(containers, { showContainerName: true, showHostname: false });
</script>

View File

@@ -1,5 +1,5 @@
<template>
<div class="w-full min-w-full shrink-0 snap-start snap-always">
<div class="w-full min-w-full shrink-0 snap-start snap-always p-0.5">
<slot />
</div>
</template>