mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-18 07:15:20 +00:00
removed redundant knowledge API call
This commit is contained in:
parent
8334149cb2
commit
0ba1cfc612
1 changed files with 1 additions and 15 deletions
|
|
@ -1,19 +1,5 @@
|
||||||
<script>
|
<script>
|
||||||
import { onMount } from 'svelte';
|
|
||||||
import { knowledge } from '$lib/stores';
|
|
||||||
|
|
||||||
import { getKnowledgeBases } from '$lib/apis/knowledge';
|
|
||||||
import Knowledge from '$lib/components/workspace/Knowledge.svelte';
|
import Knowledge from '$lib/components/workspace/Knowledge.svelte';
|
||||||
|
|
||||||
onMount(async () => {
|
|
||||||
await Promise.all([
|
|
||||||
(async () => {
|
|
||||||
knowledge.set(await getKnowledgeBases(localStorage.token));
|
|
||||||
})()
|
|
||||||
]);
|
|
||||||
});
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{#if $knowledge !== null}
|
<Knowledge />
|
||||||
<Knowledge />
|
|
||||||
{/if}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue