This commit is contained in:
Timothy Jaeryang Baek 2025-09-14 10:41:52 +02:00
parent b775826a27
commit 025eef754f

View file

@ -43,7 +43,9 @@
items = [ items = [
...items, ...items,
...res.map((item) => { ...res
.filter((item) => item?.id !== $chatId)
.map((item) => {
return { return {
...item, ...item,
type: 'chat', type: 'chat',
@ -71,7 +73,6 @@
{:else} {:else}
<div class="flex flex-col gap-0.5"> <div class="flex flex-col gap-0.5">
{#each items as item, idx} {#each items as item, idx}
{#if item?.id !== $chatId}
<button <button
class=" px-2.5 py-1 rounded-xl w-full text-left flex justify-between items-center text-sm {idx === class=" px-2.5 py-1 rounded-xl w-full text-left flex justify-between items-center text-sm {idx ===
selectedIdx selectedIdx
@ -99,7 +100,6 @@
</Tooltip> </Tooltip>
</div> </div>
</button> </button>
{/if}
{/each} {/each}
{#if !allItemsLoaded} {#if !allItemsLoaded}