fix lint issues
This commit is contained in:
parent
cc7a1679f0
commit
f2c26a90c3
|
@ -45,6 +45,6 @@ export default [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Clear Form",
|
name: "Clear Form",
|
||||||
component: ClearForm
|
component: ClearForm,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue