refac
This commit is contained in:
@@ -48,9 +48,7 @@
|
||||
$: if (query !== undefined) {
|
||||
clearTimeout(searchDebounceTimer);
|
||||
searchDebounceTimer = setTimeout(() => {
|
||||
if (loaded) {
|
||||
init();
|
||||
}
|
||||
init();
|
||||
}, 300);
|
||||
}
|
||||
|
||||
@@ -58,7 +56,7 @@
|
||||
clearTimeout(searchDebounceTimer);
|
||||
});
|
||||
|
||||
$: if (loaded && viewOption !== undefined) {
|
||||
$: if (viewOption !== undefined) {
|
||||
init();
|
||||
}
|
||||
|
||||
@@ -77,6 +75,8 @@
|
||||
};
|
||||
|
||||
const init = async () => {
|
||||
if (!loaded) return;
|
||||
|
||||
reset();
|
||||
await getItemsPage();
|
||||
};
|
||||
|
||||
@@ -85,6 +85,8 @@
|
||||
}
|
||||
|
||||
const getModelList = async () => {
|
||||
if (!loaded) return;
|
||||
|
||||
try {
|
||||
const res = await getWorkspaceModels(
|
||||
localStorage.token,
|
||||
|
||||
Reference in New Issue
Block a user