From 0b38c5cb4eb56819f73803acbc265084a6cef86e Mon Sep 17 00:00:00 2001 From: Lukas Date: Wed, 30 Oct 2024 09:28:08 +0100 Subject: [PATCH] fix(ceremony): dont subscribe to logs from layout --- ceremony/src/lib/components/Terminal/Activity.svelte | 10 +++++++--- ceremony/src/lib/state/index.svelte.ts | 3 --- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ceremony/src/lib/components/Terminal/Activity.svelte b/ceremony/src/lib/components/Terminal/Activity.svelte index 8bc027e568..64e344a1d6 100644 --- a/ceremony/src/lib/components/Terminal/Activity.svelte +++ b/ceremony/src/lib/components/Terminal/Activity.svelte @@ -1,8 +1,12 @@ -{#if activity.data} +{#if activity && activity.data}
{#each activity.data as item, i (item)} {@const type = item.message.type} diff --git a/ceremony/src/lib/state/index.svelte.ts b/ceremony/src/lib/state/index.svelte.ts index c7fd82458a..aa64776477 100644 --- a/ceremony/src/lib/state/index.svelte.ts +++ b/ceremony/src/lib/state/index.svelte.ts @@ -2,13 +2,11 @@ import { getContext, setContext } from "svelte" import { Contributor } from "./contributor.svelte.ts" import { Terminal } from "./terminal.svelte.ts" import { user, type UserSession } from "$lib/state/session.svelte.ts" -import { Activity } from "$lib/state/live.svelte.ts" import { Contributions } from "$lib/state/contributions.svelte.ts" export interface AppState { contributor: Contributor terminal: Terminal - activity: Activity contributions: Contributions user: UserSession } @@ -20,7 +18,6 @@ export function createState() { const state: AppState = { contributor: new Contributor(), terminal: new Terminal(), - activity: new Activity(), contributions: new Contributions(), user: user }