refactoring exposer-map to exposer_map in actions
This commit is contained in:
parent
bab6a1f481
commit
50d2ca9847
|
@ -180,7 +180,7 @@ export const sendCollection = ( { commit }, { name, description, status, mapper
|
|||
name: name,
|
||||
description: description,
|
||||
status: status,
|
||||
'exposer_map': mapper
|
||||
exposer_map: mapper
|
||||
})
|
||||
.then( res => {
|
||||
commit('setCollection', { name: name, description: description, status: status, mapper: mapper });
|
||||
|
|
|
@ -145,11 +145,11 @@ export const fetchFieldMappers = ({commit}) => {
|
|||
});
|
||||
}
|
||||
|
||||
export const updateFieldsMapperMetadata = ({ dispatch }, fieldsMapperMetadata, mapper) => {
|
||||
export const updateFieldsMapperMetadata = ({ dispatch }, {fieldsMapperMetadata, mapper}) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
axios.tainacan.post('/field-mappers', {
|
||||
fields_mappers: fieldsMapperMetadata,
|
||||
"exposer_map": mapper
|
||||
exposer_map: mapper
|
||||
}).then((res) => {
|
||||
resolve(res.data);
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue