From beb9aae26ba790cba5cc239b8aa5382dc7e9ead7 Mon Sep 17 00:00:00 2001 From: Stijn van der Kolk Date: Tue, 18 Oct 2022 09:53:01 +0200 Subject: show only the dependants that are enabled (#111) --- src/components/PluginSettings/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/PluginSettings') diff --git a/src/components/PluginSettings/index.tsx b/src/components/PluginSettings/index.tsx index f8cb73c..bc28cfe 100644 --- a/src/components/PluginSettings/index.tsx +++ b/src/components/PluginSettings/index.tsx @@ -230,5 +230,5 @@ function makeDependencyList(deps: string[]) { } function dependencyCheck(pluginName: string, depMap: Record): string[] { - return depMap[pluginName] || []; + return depMap[pluginName]?.filter(d => Settings.plugins[d].enabled) || []; } -- cgit