mirror of
https://github.com/open-webui/open-webui
synced 2025-01-18 08:40:58 +00:00
fix: disable all documents by default
This commit is contained in:
parent
eb2b1ab77b
commit
f814b08bcc
@ -17,12 +17,16 @@
|
||||
let collections = [];
|
||||
|
||||
$: collections = [
|
||||
{
|
||||
name: 'All Documents',
|
||||
type: 'collection',
|
||||
title: 'All Documents',
|
||||
collection_names: $documents.map((doc) => doc.collection_name)
|
||||
},
|
||||
...($documents.length > 0
|
||||
? [
|
||||
{
|
||||
name: 'All Documents',
|
||||
type: 'collection',
|
||||
title: 'All Documents',
|
||||
collection_names: $documents.map((doc) => doc.collection_name)
|
||||
}
|
||||
]
|
||||
: []),
|
||||
...$documents
|
||||
.reduce((a, e, i, arr) => {
|
||||
return [...new Set([...a, ...(e?.content?.tags ?? []).map((tag) => tag.name)])];
|
||||
|
Loading…
Reference in New Issue
Block a user