FIX: categories/delete_categories can be undefined (#6657)
This commit is contained in:
parent
06b3621e80
commit
f4432648fd
|
@ -114,8 +114,8 @@ export default {
|
|||
const router = container.lookup("router:main");
|
||||
|
||||
bus.subscribe("/categories", data => {
|
||||
data.categories.forEach(c => site.updateCategory(c));
|
||||
data.deleted_categories.forEach(id => site.removeCategory(id));
|
||||
(data.categories || []).forEach(c => site.updateCategory(c));
|
||||
(data.deleted_categories || []).forEach(id => site.removeCategory(id));
|
||||
});
|
||||
|
||||
bus.subscribe("/client_settings", data =>
|
||||
|
|
Loading…
Reference in New Issue