mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-15 19:37:47 +01:00
fix
This commit is contained in:
@@ -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
|
||||||
webConfig.search.domain_filter_list = webConfig.search.domain_filter_list
|
if (webConfig.search.domain_filter_list) {
|
||||||
.split(',')
|
webConfig.search.domain_filter_list = webConfig.search.domain_filter_list
|
||||||
.map((domain) => domain.trim())
|
.split(',')
|
||||||
.filter((domain) => domain.length > 0);
|
.map((domain) => domain.trim())
|
||||||
|
.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,
|
||||||
|
|||||||
Reference in New Issue
Block a user