From eca59f759d50239b4ab6690467385f786b37beec Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 2 Apr 2024 07:45:33 -0700 Subject: [PATCH] fix: share chat modal --- src/lib/components/chat/ShareChatModal.svelte | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/ShareChatModal.svelte b/src/lib/components/chat/ShareChatModal.svelte index 62d03ed0a..ba53d8b8a 100644 --- a/src/lib/components/chat/ShareChatModal.svelte +++ b/src/lib/components/chat/ShareChatModal.svelte @@ -73,8 +73,10 @@ export let show = false; onMount(async () => { - chat = await getChatById(localStorage.token, $chatId); - console.log(chat); + chatId.subscribe(async (value) => { + chat = await getChatById(localStorage.token, value); + console.log(chat); + }); });