diff options
author | Phil Hughes <me@iamphill.com> | 2018-01-29 11:42:27 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-01-30 09:12:58 +0000 |
commit | 06cd08ebadd3fd3571be79df6f50cffdf6247371 (patch) | |
tree | 3ad695fefedbc560cce32b331b885dfdd2cfcfe7 /app/assets/javascripts/api.js | |
parent | e0bc7e5f9cda721fff329f3dff31f6fad611762d (diff) | |
download | gitlab-ce-06cd08ebadd3fd3571be79df6f50cffdf6247371.tar.gz |
more EE backports
Diffstat (limited to 'app/assets/javascripts/api.js')
-rw-r--r-- | app/assets/javascripts/api.js | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/app/assets/javascripts/api.js b/app/assets/javascripts/api.js index acfee3fe13e..bd2b9cc2976 100644 --- a/app/assets/javascripts/api.js +++ b/app/assets/javascripts/api.js @@ -39,7 +39,11 @@ const Api = { per_page: 20, }, options), }) - .then(({ data }) => callback(data)); + .then(({ data }) => { + callback(data); + + return data; + }); }, // Return namespaces list. Filtered by query @@ -70,7 +74,11 @@ const Api = { return axios.get(url, { params: Object.assign(defaults, options), }) - .then(({ data }) => callback(data)); + .then(({ data }) => { + callback(data); + + return data; + }); }, // Return single project |