fix lint issues
This commit is contained in:
parent
cc7a1679f0
commit
f2c26a90c3
|
@ -45,6 +45,6 @@ export default [
|
|||
},
|
||||
{
|
||||
name: "Clear Form",
|
||||
component: ClearForm
|
||||
component: ClearForm,
|
||||
},
|
||||
]
|
||||
|
|
|
@ -6,7 +6,7 @@ export const ActionTypes = {
|
|||
ValidateForm: "ValidateForm",
|
||||
RefreshDatasource: "RefreshDatasource",
|
||||
SetDataProviderQuery: "SetDataProviderQuery",
|
||||
ClearForm: "ClearForm"
|
||||
ClearForm: "ClearForm",
|
||||
}
|
||||
|
||||
export const ApiVersion = "1"
|
||||
|
|
|
@ -103,7 +103,7 @@ const handlerMap = {
|
|||
["Validate Form"]: validateFormHandler,
|
||||
["Refresh Datasource"]: refreshDatasourceHandler,
|
||||
["Log Out"]: logoutHandler,
|
||||
["Clear Form"]: clearFormHandler
|
||||
["Clear Form"]: clearFormHandler,
|
||||
}
|
||||
|
||||
const confirmTextMap = {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue