nsarrazin HF Staff commited on
Commit
f7a8eb7
·
unverified ·
1 Parent(s): 40aeaf3

fix(tools): make sure component rerenders when switching conversations

Browse files
src/lib/components/chat/ChatMessage.svelte CHANGED
@@ -289,7 +289,9 @@
289
  {#if toolUpdates}
290
  {#each Object.values(toolUpdates) as tool}
291
  {#if tool.length}
292
- <ToolUpdate {tool} {loading} />
 
 
293
  {/if}
294
  {/each}
295
  {/if}
 
289
  {#if toolUpdates}
290
  {#each Object.values(toolUpdates) as tool}
291
  {#if tool.length}
292
+ {#key tool[0].uuid}
293
+ <ToolUpdate {tool} {loading} />
294
+ {/key}
295
  {/if}
296
  {/each}
297
  {/if}