mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 23:05:20 +00:00
refac
This commit is contained in:
parent
b775826a27
commit
025eef754f
1 changed files with 37 additions and 37 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Reference in a new issue