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",
component: ClearForm
component: ClearForm,
},
]

View File

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

View File

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

View File

@ -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