Answer the question
In order to leave comments, you need to log in
Why doesn't the data come into the mutation?
There is such an action
getFields({ commit, dispatch }) {
getFields().then(response => {
let formFieldsMap = response.formFields.map(n => ({ ...n, value: '' }))
console.log('1', formFieldsMap)
commit(SET_FIELDS_TRANSPORT, formFieldsMap);
}).catch(errors => {
console.error(errors);
});
},
[SET_FIELDS_TRANSPORT](state, { formFieldsMap }) {
console.log(formFieldsMap)
state.FIELDS.formFields = formFieldsMap;
},
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question