aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-08-17 14:42:53 +0200
committerChocobozzz <me@florianbigard.com>2021-08-18 08:35:06 +0200
commit9df52d660feb722404be00a50f3c8a612bec1c15 (patch)
treedde52880fa012874d24c60f64eb596b0a789cc8b /client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts
parentadb8809d43648ea0a64d6845bb39aa3bd0e005a6 (diff)
downloadPeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.tar.gz
PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.tar.zst
PeerTube-9df52d660feb722404be00a50f3c8a612bec1c15.zip
Migrate client to eslint
Diffstat (limited to 'client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts')
-rw-r--r--client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts b/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts
index 10fb52911..402bef1ea 100644
--- a/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts
+++ b/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts
@@ -103,8 +103,8 @@ export class PluginShowInstalledComponent extends FormReactive implements OnInit
103 const settingsValues: any = {} 103 const settingsValues: any = {}
104 104
105 for (const setting of this.registeredSettings) { 105 for (const setting of this.registeredSettings) {
106 buildOptions[ setting.name ] = null 106 buildOptions[setting.name] = null
107 settingsValues[ setting.name ] = this.getSetting(setting.name) 107 settingsValues[setting.name] = this.getSetting(setting.name)
108 } 108 }
109 109
110 this.buildForm(buildOptions) 110 this.buildForm(buildOptions)
@@ -117,7 +117,7 @@ export class PluginShowInstalledComponent extends FormReactive implements OnInit
117 private getSetting (name: string) { 117 private getSetting (name: string) {
118 const settings = this.plugin.settings 118 const settings = this.plugin.settings
119 119
120 if (settings && settings[name] !== undefined) return settings[name] 120 if (settings?.[name] !== undefined) return settings[name]
121 121
122 const registered = this.registeredSettings.find(r => r.name === name) 122 const registered = this.registeredSettings.find(r => r.name === name)
123 123