Skip to content

Commit

Permalink
chore: fix tools list
Browse files Browse the repository at this point in the history
  • Loading branch information
hverlin committed Jan 6, 2025
1 parent 0da6ea6 commit 0bbdc1b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/webviews/Tools.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,13 +308,11 @@ export const Tools = () => {
const trackedConfigQuery = useQuery(trackedConfigsQueryOptions);
const configs = trackedConfigQuery.data || [];

if (!selectedTool) {
return null;
}

const configsWithTool = configs.filter((config) => {
return Object.keys(config.tools).includes(selectedTool.name);
});
const configsWithTool = selectedTool
? configs.filter((config) => {
return Object.keys(config.tools).includes(selectedTool.name);
})
: [];

const outdatedToolsQuery = useQuery({
queryKey: ["outdatedTools"],
Expand Down

0 comments on commit 0bbdc1b

Please sign in to comment.