There was an error while loading. Please reload this page.
1 parent aaa0c29 commit 3734ef4Copy full SHA for 3734ef4
1 file changed
src/lib/components/assets/browser/external-assets-panel.svelte
@@ -223,11 +223,16 @@
223
224
untrack(() => {
225
window.clearTimeout(debounceTimer);
226
- debounceTimer = window.setTimeout(() => {
227
- if (hasAuthInfo) {
228
- getAssets(searchTerms);
229
- }
230
- }, 1000);
+
+ if (searchTerms) {
+ debounceTimer = window.setTimeout(() => {
+ if (hasAuthInfo) {
+ getAssets(searchTerms);
231
+ }
232
+ }, 1000);
233
+ } else if (hasAuthInfo) {
234
235
236
});
237
238
</script>
0 commit comments