fix lint issues

This commit is contained in:
Maurits Lourens 2021-07-26 15:22:14 +02:00
parent cc7a1679f0
commit f2c26a90c3
4 changed files with 5 additions and 5 deletions

View File

@ -45,6 +45,6 @@ export default [
}, },
{ {
name: "Clear Form", name: "Clear Form",
component: ClearForm component: ClearForm,
}, },
] ]

View File

@ -6,7 +6,7 @@ export const ActionTypes = {
ValidateForm: "ValidateForm", ValidateForm: "ValidateForm",
RefreshDatasource: "RefreshDatasource", RefreshDatasource: "RefreshDatasource",
SetDataProviderQuery: "SetDataProviderQuery", SetDataProviderQuery: "SetDataProviderQuery",
ClearForm: "ClearForm" ClearForm: "ClearForm",
} }
export const ApiVersion = "1" export const ApiVersion = "1"

View File

@ -103,7 +103,7 @@ const handlerMap = {
["Validate Form"]: validateFormHandler, ["Validate Form"]: validateFormHandler,
["Refresh Datasource"]: refreshDatasourceHandler, ["Refresh Datasource"]: refreshDatasourceHandler,
["Log Out"]: logoutHandler, ["Log Out"]: logoutHandler,
["Clear Form"]: clearFormHandler ["Clear Form"]: clearFormHandler,
} }
const confirmTextMap = { const confirmTextMap = {

View File

@ -68,9 +68,9 @@
const fields = Object.keys(fieldMap) const fields = Object.keys(fieldMap)
fields.forEach(field => { fields.forEach(field => {
const { fieldApi } = fieldMap[field] const { fieldApi } = fieldMap[field]
fieldApi.clearValue(); fieldApi.clearValue()
}) })
} },
} }
// Provide both form API and state to children // Provide both form API and state to children