Commit 5cf98bcc authored by Martin Wortschack's avatar Martin Wortschack Committed by Kushal Pandya
Browse files

Remove empty default export

- Removes empty default export from actions and getters
parent 43c10403
import SET_ENDPOINT from './mutation_types';
 
// eslint-disable-next-line import/prefer-default-export
export const setEndpoint = ({ commit }, endpoint) => commit(SET_ENDPOINT, endpoint);
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {};
// eslint-disable-next-line import/prefer-default-export
export const getMetricTypes = state => chartKey =>
state.metricTypes.filter(m => m.charts.indexOf(chartKey) !== -1);
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {};
......@@ -90,6 +90,3 @@ export const resetMainChartSelection = ({ commit, dispatch }, skipReload = false
 
export const setChartEnabled = ({ commit }, { chartKey, isEnabled }) =>
commit(types.SET_CHART_ENABLED, { chartKey, isEnabled });
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {};
......@@ -154,6 +154,3 @@ export const hasNoAccessError = state =>
export const isChartEnabled = state => chartKey => state.charts[chartKey].enabled;
 
export const isFilteringByDaysToMerge = state => state.charts[chartKeys.main].selected.length > 0;
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {};
......@@ -61,6 +61,3 @@ export const setDateRange = ({ commit, dispatch }, { skipFetch = false, startDat
dispatch('table/setPage', 0, { root: true });
});
};
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {};
......@@ -19,6 +19,7 @@ import { dateFormats } from '../../../../shared/constants';
* }
*
*/
// eslint-disable-next-line import/prefer-default-export
export const getCommonFilterParams = state => chartKey => {
const {
groupNamespace,
......@@ -46,6 +47,3 @@ export const getCommonFilterParams = state => chartKey => {
merged_at_before: `${dateFormat(endDate, dateFormats.isoDate)}${endOfDayTime}`,
};
};
// prevent babel-plugin-rewire from generating an invalid default during karma tests
export default () => {};
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