fix issue with empty cat

This commit is contained in:
Simon Vieille
2020-08-13 16:33:02 +02:00
parent d30603c7d1
commit c6a43f755d
3 changed files with 12 additions and 8 deletions
+6 -6
View File
@@ -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])
});