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