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> </tr>
</thead> </thead>
<tbody class=""> <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"> <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"> <td class="px-3 py-1 min-w-[7rem] w-28">
<button <button

View file

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