From e0bc7e5f9cda721fff329f3dff31f6fad611762d Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Mon, 29 Jan 2018 10:12:32 +0000 Subject: [PATCH] backported changed from EE --- app/assets/javascripts/api.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/api.js b/app/assets/javascripts/api.js index bd2842c90f5..acfee3fe13e 100644 --- a/app/assets/javascripts/api.js +++ b/app/assets/javascripts/api.js @@ -23,7 +23,11 @@ const Api = { const url = Api.buildUrl(Api.groupPath) .replace(':id', groupId); return axios.get(url) - .then(({ data }) => callback(data)); + .then(({ data }) => { + callback(data); + + return data; + }); }, // Return groups list. Filtered by query