Skip to content

Commit 11e1285

Browse files
committed
fix: fixes broken host page on initial page load
1 parent 43e3f4c commit 11e1285

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

assets/components/HostViewer/HostLog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const store = useContainerStore();
3737
const { containersByHost } = storeToRefs(store);
3838
const { hosts } = useHosts();
3939
const host = computed(() => hosts.value[id]);
40-
const containers = computed(() => containersByHost.value?.[id].filter((c) => c.state === "running") ?? []);
40+
const containers = computed(() => containersByHost.value?.[id]?.filter((c) => c.state === "running") ?? []);
4141
const viewer = useTemplateRef<ComponentExposed<typeof ViewerWithSource>>("viewer");
4242
provideLoggingContext(containers, { showContainerName: true, showHostname: false });
4343
</script>

assets/components/common/CarouselItem.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div class="w-full min-w-full shrink-0 snap-start snap-always">
2+
<div class="w-full min-w-full shrink-0 snap-start snap-always p-0.5">
33
<slot />
44
</div>
55
</template>

0 commit comments

Comments
 (0)