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