This commit is contained in:
Timothy Jaeryang Baek
2026-01-31 17:03:24 -06:00
parent 643c661a6f
commit e5dbfc420d
2 changed files with 6 additions and 4 deletions

View File

@@ -48,9 +48,7 @@
$: if (query !== undefined) { $: if (query !== undefined) {
clearTimeout(searchDebounceTimer); clearTimeout(searchDebounceTimer);
searchDebounceTimer = setTimeout(() => { searchDebounceTimer = setTimeout(() => {
if (loaded) { init();
init();
}
}, 300); }, 300);
} }
@@ -58,7 +56,7 @@
clearTimeout(searchDebounceTimer); clearTimeout(searchDebounceTimer);
}); });
$: if (loaded && viewOption !== undefined) { $: if (viewOption !== undefined) {
init(); init();
} }
@@ -77,6 +75,8 @@
}; };
const init = async () => { const init = async () => {
if (!loaded) return;
reset(); reset();
await getItemsPage(); await getItemsPage();
}; };

View File

@@ -85,6 +85,8 @@
} }
const getModelList = async () => { const getModelList = async () => {
if (!loaded) return;
try { try {
const res = await getWorkspaceModels( const res = await getWorkspaceModels(
localStorage.token, localStorage.token,