From 628d7ae72de2d437c4be440a772053998033cdca Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 19 Sep 2024 16:20:07 +0200 Subject: [PATCH] refac --- src/lib/components/chat/Overview.svelte | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/lib/components/chat/Overview.svelte b/src/lib/components/chat/Overview.svelte index 16dd5d83c..0ac54dbe6 100644 --- a/src/lib/components/chat/Overview.svelte +++ b/src/lib/components/chat/Overview.svelte @@ -81,8 +81,7 @@ data: { user: $user, message: history.messages[id], - model: $models.find((model) => model.id === history.messages[id].model), - label: createLabel(history.messages[id].content) + model: $models.find((model) => model.id === history.messages[id].model) }, position: { x, y } }); @@ -162,6 +161,14 @@ {#if $nodes.length > 0} - dispatch('nodeclick', e.detail)} /> + { + console.log(e.detail.node.data); + dispatch('nodeclick', e.detail); + }} + /> {/if}