Skip to content

Commit

Permalink
fix: empty search returning no apps
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare authored Jun 27, 2024
1 parent 98642f8 commit 43c9006
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/workers/search.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43c9006

Please sign in to comment.