Skip to content

Commit 3734ef4

Browse files
committed
Call getAssets immediately with no search terms
1 parent aaa0c29 commit 3734ef4

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

src/lib/components/assets/browser/external-assets-panel.svelte

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,16 @@
223223
224224
untrack(() => {
225225
window.clearTimeout(debounceTimer);
226-
debounceTimer = window.setTimeout(() => {
227-
if (hasAuthInfo) {
228-
getAssets(searchTerms);
229-
}
230-
}, 1000);
226+
227+
if (searchTerms) {
228+
debounceTimer = window.setTimeout(() => {
229+
if (hasAuthInfo) {
230+
getAssets(searchTerms);
231+
}
232+
}, 1000);
233+
} else if (hasAuthInfo) {
234+
getAssets(searchTerms);
235+
}
231236
});
232237
});
233238
</script>

0 commit comments

Comments
 (0)