Commit 19e6fcc4 authored by Ezekiel Kigbo's avatar Ezekiel Kigbo

Minor fix remove extra fetchTasksByTypeData dispatch

parent 8c91a769
...@@ -32,10 +32,7 @@ export const setDateRange = ( ...@@ -32,10 +32,7 @@ export const setDateRange = (
if (skipFetch) return false; if (skipFetch) return false;
return Promise.all([ return dispatch('fetchCycleAnalyticsData', { state, dispatch });
dispatch('fetchCycleAnalyticsData', { state, dispatch }),
dispatch('fetchTasksByTypeData'),
]);
}; };
export const requestStageData = ({ commit }) => commit(types.REQUEST_STAGE_DATA); export const requestStageData = ({ commit }) => commit(types.REQUEST_STAGE_DATA);
...@@ -207,6 +204,7 @@ export const receiveTasksByTypeError = ({ commit }, error) => { ...@@ -207,6 +204,7 @@ export const receiveTasksByTypeError = ({ commit }, error) => {
export const receiveTasksByTypeDataSuccess = ({ commit }, data) => export const receiveTasksByTypeDataSuccess = ({ commit }, data) =>
commit(types.RECEIVE_TASKS_BY_TYPE_DATA_SUCCESS, data); commit(types.RECEIVE_TASKS_BY_TYPE_DATA_SUCCESS, data);
export const receiveTasksByTypeDataError = ({ commit }, error) => { export const receiveTasksByTypeDataError = ({ commit }, error) => {
commit(types.RECEIVE_TASKS_BY_TYPE_DATA_ERROR, error); commit(types.RECEIVE_TASKS_BY_TYPE_DATA_ERROR, error);
createFlash(__('There was an error fetching data for the chart')); createFlash(__('There was an error fetching data for the chart'));
......
...@@ -79,10 +79,7 @@ describe('Cycle analytics actions', () => { ...@@ -79,10 +79,7 @@ describe('Cycle analytics actions', () => {
{ startDate, endDate }, { startDate, endDate },
state, state,
[{ type: types.SET_DATE_RANGE, payload: { startDate, endDate } }], [{ type: types.SET_DATE_RANGE, payload: { startDate, endDate } }],
[ [{ type: 'fetchCycleAnalyticsData', payload: { dispatch, state } }],
{ type: 'fetchCycleAnalyticsData', payload: { dispatch, state } },
{ type: 'fetchTasksByTypeData' },
],
done, done,
); );
}); });
......
...@@ -17419,10 +17419,10 @@ msgstr "" ...@@ -17419,10 +17419,10 @@ msgstr ""
msgid "There was an error fetching cycle analytics stages." msgid "There was an error fetching cycle analytics stages."
msgstr "" msgstr ""
msgid "There was an error fetching data for the selected stage" msgid "There was an error fetching data for the chart"
msgstr "" msgstr ""
msgid "There was an error fetching data for the chart" msgid "There was an error fetching data for the form"
msgstr "" msgstr ""
msgid "There was an error fetching data for the selected stage" msgid "There was an error fetching data for the selected stage"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment