diff --git a/src/js/store/modules/collection/actions.js b/src/js/store/modules/collection/actions.js index 8c716596a..624f1b45b 100644 --- a/src/js/store/modules/collection/actions.js +++ b/src/js/store/modules/collection/actions.js @@ -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 }); diff --git a/src/js/store/modules/fields/actions.js b/src/js/store/modules/fields/actions.js index 779730f83..f09e4188d 100644 --- a/src/js/store/modules/fields/actions.js +++ b/src/js/store/modules/fields/actions.js @@ -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); })