From 15b7af200ab58669ab505f3ee19f271d15ae7b1c Mon Sep 17 00:00:00 2001 From: ThinLiquid Date: Sat, 11 May 2024 21:41:03 +0100 Subject: [PATCH] Update searchpal.ts --- src/searchpal.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/searchpal.ts b/src/searchpal.ts index 8973317..08d043d 100644 --- a/src/searchpal.ts +++ b/src/searchpal.ts @@ -1,8 +1,6 @@ import HTML from '@datkat21/html' import { Album, Playlist, SearchResults, SimplifiedAlbum, SpotifyApi, Track } from '@spotify/web-api-ts-sdk' import Player from './player' -import localforage from 'localforage' -import { CachedData } from './types' import { throttle } from 'throttle-debounce' import Queue from './queue' @@ -313,7 +311,7 @@ class SearchPalette { throttle(1000, async () => { const query = this.input.getValue() if (query === '') { - this.renderCached() + this.container.html('') return } if (this.sdk != null) {