re-renders processes list after fetch results
This commit is contained in:
parent
c40225a0f3
commit
cc34837b0e
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue