mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-24 14:30:20 -05:00
refac
This commit is contained in:
1 parent
64c37ab968
commit
c8cbdc8f7f
5 files changed
+151
-130
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<script lang="ts">
|
||||
import { getContext, onDestroy } from 'svelte';
|
||||
import { searchSkills } from '$lib/apis/skills';
|
||||
import { getSkillItems } from '$lib/apis/skills';
|
||||
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
||||
import Keyframes from '$lib/components/icons/Keyframes.svelte';
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
});
|
||||
|
||||
const getItems = async () => {
|
||||
const res = await searchSkills(localStorage.token, query).catch(() => null);
|
||||
const res = await getSkillItems(localStorage.token, query).catch(() => null);
|
||||
if (res) {
|
||||
filteredItems = res.items;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user