Commit 2610a385 authored by Phil Hughes's avatar Phil Hughes

Merge branch '217349-remove-legacy-callback' into 'master'

Remove legacy callback argument from group method

Closes #217349

See merge request gitlab-org/gitlab!33408
parents 2d436941 58aecb83
......@@ -53,7 +53,7 @@ const Api = {
rawFilePath: '/api/:version/projects/:id/repository/files/:path/raw',
issuePath: '/api/:version/projects/:id/issues/:issue_iid',
group(groupId, callback) {
group(groupId, callback = () => {}) {
const url = Api.buildUrl(Api.groupPath).replace(':id', groupId);
return axios.get(url).then(({ data }) => {
callback(data);
......
......@@ -9,7 +9,7 @@ export default {
inheritAttrs: false,
tokenMethods: {
fetchItem(id) {
return Api.group(id, () => {});
return Api.group(id);
},
fetchSuggestions(term) {
return Api.groups(term);
......
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