From 9df52d660feb722404be00a50f3c8a612bec1c15 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 17 Aug 2021 14:42:53 +0200 Subject: Migrate client to eslint --- .../plugin-show-installed/plugin-show-installed.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts') 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 const settingsValues: any = {} for (const setting of this.registeredSettings) { - buildOptions[ setting.name ] = null - settingsValues[ setting.name ] = this.getSetting(setting.name) + buildOptions[setting.name] = null + settingsValues[setting.name] = this.getSetting(setting.name) } this.buildForm(buildOptions) @@ -117,7 +117,7 @@ export class PluginShowInstalledComponent extends FormReactive implements OnInit private getSetting (name: string) { const settings = this.plugin.settings - if (settings && settings[name] !== undefined) return settings[name] + if (settings?.[name] !== undefined) return settings[name] const registered = this.registeredSettings.find(r => r.name === name) -- cgit v1.2.3