From 70beda5f053536f8c93bdd93f56cac2d97d698cd Mon Sep 17 00:00:00 2001 From: Koen Kanters Date: Thu, 28 Nov 2024 21:42:55 +0100 Subject: [PATCH] chore(pretty): lint --- src/components/device-page/DeviceSettings.tsx | 2 +- src/components/settings-page/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/device-page/DeviceSettings.tsx b/src/components/device-page/DeviceSettings.tsx index d111a89a6..a937ab87c 100644 --- a/src/components/device-page/DeviceSettings.tsx +++ b/src/components/device-page/DeviceSettings.tsx @@ -67,7 +67,7 @@ export class DeviceSettings extends Component this.formData = data.formData} + onChange={(data) => (this.formData = data.formData)} onSubmit={this.updateConfig} uiSchema={uiSchema} fields={{ TitleField, DescriptionField }} diff --git a/src/components/settings-page/index.tsx b/src/components/settings-page/index.tsx index a86ffb76f..095ab8d29 100644 --- a/src/components/settings-page/index.tsx +++ b/src/components/settings-page/index.tsx @@ -97,7 +97,7 @@ class SettingsPage extends Component< state = { keyName: ROOT_KEY_NAME, }; - settingsFormData: {[s: string]: Record} = {}; + settingsFormData: { [s: string]: Record } = {}; renderCategoriesTabs(): JSX.Element { const { t } = this.props; return ( @@ -394,7 +394,7 @@ class SettingsPage extends Component< idPrefix={keyName} schema={currentSchema} formData={this.settingsFormData[keyName]} - onChange={(data) => this.settingsFormData[keyName] = data.formData} + onChange={(data) => (this.settingsFormData[keyName] = data.formData)} onSubmit={this.onSettingsSave} uiSchema={uiSchemas[keyName] as UiSchema} fields={{ TitleField, DescriptionField }}