From 43c90067065e5245356aabfa17c25321df5781c2 Mon Sep 17 00:00:00 2001 From: Ceci Date: Wed, 26 Jun 2024 23:31:47 -0500 Subject: [PATCH] fix: empty search returning no apps --- src/workers/search.worker.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/workers/search.worker.ts b/src/workers/search.worker.ts index 6f69f08..f210219 100644 --- a/src/workers/search.worker.ts +++ b/src/workers/search.worker.ts @@ -11,6 +11,8 @@ async function filterApps(value: string) { // TODO: Add a method of getting an api version (git sha) and using it to enable caching and cache busting const apps = await getApps(); + if (!value) return apps; + const partials = value.split(' ').filter(Boolean); return apps