We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 643c661 commit e5dbfc4Copy full SHA for e5dbfc4
2 files changed
src/lib/components/workspace/Knowledge.svelte
@@ -48,17 +48,15 @@
48
$: if (query !== undefined) {
49
clearTimeout(searchDebounceTimer);
50
searchDebounceTimer = setTimeout(() => {
51
- if (loaded) {
52
- init();
53
- }
+ init();
54
}, 300);
55
}
56
57
onDestroy(() => {
58
59
});
60
61
- $: if (loaded && viewOption !== undefined) {
+ $: if (viewOption !== undefined) {
62
init();
63
64
@@ -77,6 +75,8 @@
77
75
};
78
76
79
const init = async () => {
+ if (!loaded) return;
+
80
reset();
81
await getItemsPage();
82
src/lib/components/workspace/Models.svelte
@@ -85,6 +85,8 @@
85
86
87
const getModelList = async () => {
88
89
90
try {
91
const res = await getWorkspaceModels(
92
localStorage.token,
0 commit comments