mirror of
https://github.com/open-webui/open-webui
synced 2024-11-06 16:59:42 +00:00
refac
This commit is contained in:
parent
a89d29db9c
commit
a0692a434d
@ -54,7 +54,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (id.startsWith('http://') || id.startsWith('https://')) {
|
if (id.startsWith('http://') || id.startsWith('https://')) {
|
||||||
source = { ...source, url: id };
|
source = { name: id, ...source, url: id };
|
||||||
}
|
}
|
||||||
|
|
||||||
const existingSource = acc.find((item) => item.id === id);
|
const existingSource = acc.find((item) => item.id === id);
|
||||||
|
Loading…
Reference in New Issue
Block a user