mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
249b12e44f
commit
6a3b0e3110
1 changed files with 1 additions and 7 deletions
|
|
@ -116,13 +116,7 @@
|
||||||
]
|
]
|
||||||
: [];
|
: [];
|
||||||
|
|
||||||
items = [
|
items = [...notes, ...collections, ...legacy_collections].map((item) => {
|
||||||
...notes,
|
|
||||||
...collections,
|
|
||||||
...collection_files,
|
|
||||||
...legacy_collections,
|
|
||||||
...legacy_documents
|
|
||||||
].map((item) => {
|
|
||||||
return {
|
return {
|
||||||
...item,
|
...item,
|
||||||
...(item?.legacy || item?.meta?.legacy || item?.meta?.document ? { legacy: true } : {})
|
...(item?.legacy || item?.meta?.legacy || item?.meta?.document ? { legacy: true } : {})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue