diff options
Diffstat (limited to 'app/assets/javascripts/contributors/stores/actions.js')
-rw-r--r-- | app/assets/javascripts/contributors/stores/actions.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/assets/javascripts/contributors/stores/actions.js b/app/assets/javascripts/contributors/stores/actions.js index 72aae3af692..4cc0a6a6509 100644 --- a/app/assets/javascripts/contributors/stores/actions.js +++ b/app/assets/javascripts/contributors/stores/actions.js @@ -1,4 +1,4 @@ -import { deprecatedCreateFlash as flash } from '~/flash'; +import createFlash from '~/flash'; import { __ } from '~/locale'; import service from '../services/contributors_service'; import * as types from './mutation_types'; @@ -13,5 +13,9 @@ export const fetchChartData = ({ commit }, endpoint) => { commit(types.SET_CHART_DATA, data); commit(types.SET_LOADING_STATE, false); }) - .catch(() => flash(__('An error occurred while loading chart data'))); + .catch(() => + createFlash({ + message: __('An error occurred while loading chart data'), + }), + ); }; |