aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn van der Kolk <stijn@kolkies.dev>2022-10-18 09:53:01 +0200
committerGitHub <noreply@github.com>2022-10-18 09:53:01 +0200
commitbeb9aae26ba790cba5cc239b8aa5382dc7e9ead7 (patch)
tree1f2683a003bc6bab8a8b26884b97040780376ef2
parent9d6021f0b985ca09fded65af87166c1f7a70141a (diff)
downloadVencord-beb9aae26ba790cba5cc239b8aa5382dc7e9ead7.tar.gz
Vencord-beb9aae26ba790cba5cc239b8aa5382dc7e9ead7.tar.bz2
Vencord-beb9aae26ba790cba5cc239b8aa5382dc7e9ead7.zip
show only the dependants that are enabled (#111)
-rw-r--r--src/components/PluginSettings/index.tsx2
1 files changed, 1 insertions, 1 deletions
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, string[]>): string[] {
- return depMap[pluginName] || [];
+ return depMap[pluginName]?.filter(d => Settings.plugins[d].enabled) || [];
}