Skip to content

Commit

Permalink
Filter out plugins that dont have name (#616)
Browse files Browse the repository at this point in the history
  • Loading branch information
codemonkey800 authored Jul 26, 2022
1 parent 28e7c40 commit 8f864de
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions frontend/src/store/search/results.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,13 @@ export function getResultsStore(

// Return full list of plugins if the engine or query aren't defined.
if (!query) {
results = index.map<SearchResult>((plugin, pluginIndex) => ({
plugin,
index: pluginIndex,
matches: {},
}));
results = index
.filter((plugin) => !!plugin.name)
.map<SearchResult>((plugin, pluginIndex) => ({
plugin,
index: pluginIndex,
matches: {},
}));
} else {
const { duration, result } = measureExecution(() =>
searchStore.search.search(),
Expand Down

0 comments on commit 8f864de

Please sign in to comment.