mirror of
https://github.com/open-webui/open-webui
synced 2025-05-22 13:54:20 +00:00
fix
This commit is contained in:
parent
a1b31f99ae
commit
790a747647
@ -35,10 +35,14 @@
|
|||||||
|
|
||||||
const submitHandler = async () => {
|
const submitHandler = async () => {
|
||||||
// Convert domain filter string to array before sending
|
// Convert domain filter string to array before sending
|
||||||
|
if (webConfig.search.domain_filter_list) {
|
||||||
webConfig.search.domain_filter_list = webConfig.search.domain_filter_list
|
webConfig.search.domain_filter_list = webConfig.search.domain_filter_list
|
||||||
.split(',')
|
.split(',')
|
||||||
.map((domain) => domain.trim())
|
.map((domain) => domain.trim())
|
||||||
.filter((domain) => domain.length > 0);
|
.filter((domain) => domain.length > 0);
|
||||||
|
} else {
|
||||||
|
webConfig.search.domain_filter_list = [];
|
||||||
|
}
|
||||||
|
|
||||||
const res = await updateRAGConfig(localStorage.token, {
|
const res = await updateRAGConfig(localStorage.token, {
|
||||||
web: webConfig,
|
web: webConfig,
|
||||||
|
Loading…
Reference in New Issue
Block a user