This commit is contained in:
G30 2025-12-10 17:18:53 +01:00 committed by GitHub
commit aed6d1955b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -68,20 +68,25 @@
let models = null;
let total = null;
let searchDebounceTimer;
$: if (
page !== undefined &&
query !== undefined &&
selectedTag !== undefined &&
viewOption !== undefined
) {
getModelList();
clearTimeout(searchDebounceTimer);
searchDebounceTimer = setTimeout(() => {
getModelList();
}, 300);
}
const getModelList = async () => {
try {
const res = await getWorkspaceModels(
localStorage.token,
query,
query.slice(0, 500),
viewOption,
selectedTag,
null,