]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix default boolean plugin setting
authorChocobozzz <me@florianbigard.com>
Tue, 9 Mar 2021 12:51:02 +0000 (13:51 +0100)
committerChocobozzz <me@florianbigard.com>
Tue, 9 Mar 2021 12:51:02 +0000 (13:51 +0100)
client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts

index 1acaf9674ecd2fd18235f24354f09bda51a4e6ba..4e60ca290af88ad1f46c0e2317e8966e09da1267 100644 (file)
@@ -97,7 +97,7 @@ export class PluginShowInstalledComponent extends FormReactive implements OnInit
   private getSetting (name: string) {
     const settings = this.plugin.settings
 
-    if (settings && settings[name]) return settings[name]
+    if (settings && settings[name] !== undefined) return settings[name]
 
     const registered = this.registeredSettings.find(r => r.name === name)