refac
This commit is contained in:
1 parent
b775826a27
commit
025eef754f
1 file changed
+3
-3
@@ -43,7 +43,9 @@
|
||||
|
||||
items = [
|
||||
...items,
|
||||
...res.map((item) => {
|
||||
...res
|
||||
.filter((item) => item?.id !== $chatId)
|
||||
.map((item) => {
|
||||
return {
|
||||
...item,
|
||||
type: 'chat',
|
||||
@@ -71,7 +73,6 @@
|
||||
{:else}
|
||||
<div class="flex flex-col gap-0.5">
|
||||
{#each items as item, idx}
|
||||
{#if item?.id !== $chatId}
|
||||
<button
|
||||
class=" px-2.5 py-1 rounded-xl w-full text-left flex justify-between items-center text-sm {idx ===
|
||||
selectedIdx
|
||||
@@ -99,7 +100,6 @@
|
||||
</Tooltip>
|
||||
</div>
|
||||
</button>
|
||||
{/if}
|
||||
{/each}
|
||||
|
||||
{#if !allItemsLoaded}
|
||||
|
||||
Reference in new issue
Block a user