From 48ac4d9f2a18b0e26eb880d8f4fb0841e3c200af Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 11 Jun 2024 18:23:42 -0700 Subject: [PATCH] fix --- src/lib/components/chat/MessageInput/InputMenu.svelte | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/lib/components/chat/MessageInput/InputMenu.svelte b/src/lib/components/chat/MessageInput/InputMenu.svelte index f13933327..4ae380e66 100644 --- a/src/lib/components/chat/MessageInput/InputMenu.svelte +++ b/src/lib/components/chat/MessageInput/InputMenu.svelte @@ -21,6 +21,16 @@ export let tools = {}; export let onClose: Function; + $: tools = Object.fromEntries( + Object.keys(tools).map((toolId) => [ + toolId, + { + ...tools[toolId], + enabled: selectedToolIds.includes(toolId) + } + ]) + ); + let show = false;