summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/feature_flags/store/gitlab_user_list/actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/feature_flags/store/gitlab_user_list/actions.js')
-rw-r--r--app/assets/javascripts/feature_flags/store/gitlab_user_list/actions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/feature_flags/store/gitlab_user_list/actions.js b/app/assets/javascripts/feature_flags/store/gitlab_user_list/actions.js
index d4587713fed..a834524df6c 100644
--- a/app/assets/javascripts/feature_flags/store/gitlab_user_list/actions.js
+++ b/app/assets/javascripts/feature_flags/store/gitlab_user_list/actions.js
@@ -1,14 +1,14 @@
import Api from '~/api';
import * as types from './mutation_types';
-const getErrorMessages = error => [].concat(error?.response?.data?.message ?? error.message);
+const getErrorMessages = (error) => [].concat(error?.response?.data?.message ?? error.message);
export const fetchUserLists = ({ commit, state: { filter, projectId } }) => {
commit(types.FETCH_USER_LISTS);
return Api.searchFeatureFlagUserLists(projectId, filter)
.then(({ data }) => commit(types.RECEIVE_USER_LISTS_SUCCESS, data))
- .catch(error => commit(types.RECEIVE_USER_LISTS_ERROR, getErrorMessages(error)));
+ .catch((error) => commit(types.RECEIVE_USER_LISTS_ERROR, getErrorMessages(error)));
};
export const setFilter = ({ commit, dispatch }, filter) => {