diff options
author | Stijn van der Kolk <stijn@kolkies.dev> | 2022-10-18 09:53:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 09:53:01 +0200 |
commit | beb9aae26ba790cba5cc239b8aa5382dc7e9ead7 (patch) | |
tree | 1f2683a003bc6bab8a8b26884b97040780376ef2 /src/components/PluginSettings | |
parent | 9d6021f0b985ca09fded65af87166c1f7a70141a (diff) | |
download | Vencord-beb9aae26ba790cba5cc239b8aa5382dc7e9ead7.tar.gz Vencord-beb9aae26ba790cba5cc239b8aa5382dc7e9ead7.tar.bz2 Vencord-beb9aae26ba790cba5cc239b8aa5382dc7e9ead7.zip |
show only the dependants that are enabled (#111)
Diffstat (limited to 'src/components/PluginSettings')
-rw-r--r-- | src/components/PluginSettings/index.tsx | 2 |
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) || []; } |