From f2c26a90c358d51cb44a188cbb2394a7c5bb64ee Mon Sep 17 00:00:00 2001 From: Maurits Lourens Date: Mon, 26 Jul 2021 15:22:14 +0200 Subject: [PATCH] fix lint issues --- .../PropertyControls/EventsEditor/actions/index.js | 2 +- packages/client/src/constants.js | 2 +- packages/client/src/utils/buttonActions.js | 2 +- packages/standard-components/src/forms/InnerForm.svelte | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/index.js b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/index.js index 5ac594328f..bfbf97701b 100644 --- a/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/index.js +++ b/packages/builder/src/components/design/PropertiesPanel/PropertyControls/EventsEditor/actions/index.js @@ -45,6 +45,6 @@ export default [ }, { name: "Clear Form", - component: ClearForm + component: ClearForm, }, ] diff --git a/packages/client/src/constants.js b/packages/client/src/constants.js index 049b16801b..7204b8c951 100644 --- a/packages/client/src/constants.js +++ b/packages/client/src/constants.js @@ -6,7 +6,7 @@ export const ActionTypes = { ValidateForm: "ValidateForm", RefreshDatasource: "RefreshDatasource", SetDataProviderQuery: "SetDataProviderQuery", - ClearForm: "ClearForm" + ClearForm: "ClearForm", } export const ApiVersion = "1" diff --git a/packages/client/src/utils/buttonActions.js b/packages/client/src/utils/buttonActions.js index 9dd32561d7..ea29180d36 100644 --- a/packages/client/src/utils/buttonActions.js +++ b/packages/client/src/utils/buttonActions.js @@ -103,7 +103,7 @@ const handlerMap = { ["Validate Form"]: validateFormHandler, ["Refresh Datasource"]: refreshDatasourceHandler, ["Log Out"]: logoutHandler, - ["Clear Form"]: clearFormHandler + ["Clear Form"]: clearFormHandler, } const confirmTextMap = { diff --git a/packages/standard-components/src/forms/InnerForm.svelte b/packages/standard-components/src/forms/InnerForm.svelte index 55e14217e1..cd135c1551 100644 --- a/packages/standard-components/src/forms/InnerForm.svelte +++ b/packages/standard-components/src/forms/InnerForm.svelte @@ -68,9 +68,9 @@ const fields = Object.keys(fieldMap) fields.forEach(field => { const { fieldApi } = fieldMap[field] - fieldApi.clearValue(); + fieldApi.clearValue() }) - } + }, } // Provide both form API and state to children