fix issue with empty cat
This commit is contained in:
+6
-6
@@ -61,13 +61,13 @@ export default {
|
||||
.then(function(response) {
|
||||
that.items = response.data.items
|
||||
|
||||
let apps = []
|
||||
let apps = []
|
||||
|
||||
for (let category of that.items) {
|
||||
for (let app of category.apps) {
|
||||
apps.push(app)
|
||||
}
|
||||
}
|
||||
for (let category of that.items) {
|
||||
for (let app of category.apps) {
|
||||
apps.push(app)
|
||||
}
|
||||
}
|
||||
|
||||
jQuery('body').trigger('side-menu.apps', [apps])
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user