From 0b84b22b4eeaaf49f594553acccb00fb23757164 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 5 Jun 2025 22:38:46 +0400 Subject: [PATCH] refac: chat item key --- src/lib/components/layout/Sidebar.svelte | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 34342a859..1bbb714df 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -785,7 +785,7 @@
- {#each $pinnedChats as chat, idx} + {#each $pinnedChats as chat, idx (`pinned-chat-${chat?.id ?? idx}`)}
{#if $chats} - {#each $chats as chat, idx} + {#each $chats as chat, idx (`chat-${chat?.id ?? idx}`)} {#if idx === 0 || (idx > 0 && chat.time_range !== $chats[idx - 1].time_range)}