re-renders processes list after fetch results

This commit is contained in:
Rodrigo Guimarães 2020-11-09 03:14:37 -03:00
parent c40225a0f3
commit cc34837b0e
1 changed files with 3 additions and 0 deletions

View File

@ -27,8 +27,11 @@ export const fetchProcesses = ({ commit }, {page, processesPerPage, shouldUpdate
axios.tainacan.get(endpoint)
.then( res => {
let processes = res.data;
/*
if (shouldUpdateStore)
commit('setProcesses', processes);
*/
commit('setProcesses', processes);
resolve({ 'processes': processes, 'total': res.headers['x-wp-total'] });
})
.catch( error => {