We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0da6ea6 commit 0bbdc1bCopy full SHA for 0bbdc1b
src/webviews/Tools.tsx
@@ -308,13 +308,11 @@ export const Tools = () => {
308
const trackedConfigQuery = useQuery(trackedConfigsQueryOptions);
309
const configs = trackedConfigQuery.data || [];
310
311
- if (!selectedTool) {
312
- return null;
313
- }
314
-
315
- const configsWithTool = configs.filter((config) => {
316
- return Object.keys(config.tools).includes(selectedTool.name);
317
- });
+ const configsWithTool = selectedTool
+ ? configs.filter((config) => {
+ return Object.keys(config.tools).includes(selectedTool.name);
+ })
+ : [];
318
319
const outdatedToolsQuery = useQuery({
320
queryKey: ["outdatedTools"],
0 commit comments