diff options
Diffstat (limited to 'app/assets/javascripts/projects/commit/store/actions.js')
-rw-r--r-- | app/assets/javascripts/projects/commit/store/actions.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/projects/commit/store/actions.js b/app/assets/javascripts/projects/commit/store/actions.js index 2b25082eced..cfff93eac5a 100644 --- a/app/assets/javascripts/projects/commit/store/actions.js +++ b/app/assets/javascripts/projects/commit/store/actions.js @@ -1,4 +1,4 @@ -import createFlash from '~/flash'; +import { createAlert } from '~/flash'; import axios from '~/lib/utils/axios_utils'; import { PROJECT_BRANCHES_ERROR } from '../constants'; import * as types from './mutation_types'; @@ -26,7 +26,7 @@ export const fetchBranches = ({ commit, dispatch, state }, query) => { commit(types.RECEIVE_BRANCHES_SUCCESS, data.Branches?.length ? data.Branches : data); }) .catch(() => { - createFlash({ message: PROJECT_BRANCHES_ERROR }); + createAlert({ message: PROJECT_BRANCHES_ERROR }); }); }; |