From 68aca7680528b9e16860f2291d88bf6f09fbd3fa Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sat, 15 Jun 2024 03:39:21 -0600 Subject: [PATCH] fix --- .../chat/Settings/Personalization/EditMemoryModal.svelte | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Settings/Personalization/EditMemoryModal.svelte b/src/lib/components/chat/Settings/Personalization/EditMemoryModal.svelte index caf0b98bd..7eecc4c30 100644 --- a/src/lib/components/chat/Settings/Personalization/EditMemoryModal.svelte +++ b/src/lib/components/chat/Settings/Personalization/EditMemoryModal.svelte @@ -17,9 +17,13 @@ let content = ''; $: if (show) { - content = memory.content; + setContent(); } + const setContent = () => { + content = memory.content; + }; + const submitHandler = async () => { loading = true; @@ -32,6 +36,7 @@ if (res) { console.log(res); toast.success('Memory updated successfully'); + dispatch('save'); show = false; }