Commit 4eddf4d8 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Initialize category actions with the subcategories already inside

parent 84137f97
......@@ -175,8 +175,7 @@ Kirigami.GlobalDrawer {
var actions = []
for(var i in categories) {
var cat = categories[i];
var catAction = categoryActionComponent.createObject(drawer, {category: cat});
catAction.children = createCategoryActions(cat.subcategories);
var catAction = categoryActionComponent.createObject(drawer, {category: cat, children: createCategoryActions(cat.subcategories)});
actions.push(catAction)
}
return actions;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment