Compare commits

...

3 commits

Author SHA1 Message Date
G30
aed6d1955b
Merge 7c08ce2217 into ae47101dc6 2025-12-10 17:18:53 +01:00
Timothy Jaeryang Baek
ae47101dc6 refac 2025-12-10 11:07:41 -05:00
silentoplayz
7c08ce2217 fix: Models workspace page crash 2025-12-08 23:41:06 -05:00
2 changed files with 8 additions and 3 deletions

View file

@ -339,7 +339,7 @@
</tr>
</thead>
<tbody class="">
{#each users as user, userIdx}
{#each users as user, userIdx (user.id)}
<tr class="bg-white dark:bg-gray-900 dark:border-gray-850 text-xs">
<td class="px-3 py-1 min-w-[7rem] w-28">
<button

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,