summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/frequent_items
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-11-25 15:06:45 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-11-25 15:06:45 +0000
commited9c54b56af280cc552aaac1cfa55533c900c1be (patch)
tree99605e6980c1673566fe7f293f9e4fe8dcdc4416 /app/assets/javascripts/frequent_items
parent8f1f6b374b69fd6356bdc5561d56f5ca9db9fadd (diff)
downloadgitlab-ce-ed9c54b56af280cc552aaac1cfa55533c900c1be.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/frequent_items')
-rw-r--r--app/assets/javascripts/frequent_items/store/mutations.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/frequent_items/store/mutations.js b/app/assets/javascripts/frequent_items/store/mutations.js
index 92ac3a2c94d..78ccef7f253 100644
--- a/app/assets/javascripts/frequent_items/store/mutations.js
+++ b/app/assets/javascripts/frequent_items/store/mutations.js
@@ -48,7 +48,7 @@ export default {
});
},
[types.RECEIVE_SEARCHED_ITEMS_SUCCESS](state, results) {
- const rawItems = results.data;
+ const rawItems = results.data ? results.data : results; // Api.groups returns array, Api.projects returns object
Object.assign(state, {
items: rawItems.map(rawItem => ({
id: rawItem.id,