mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-18 07:15: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 = [
|
||||||
...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}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue