mirror of
https://github.com/flarum/framework.git
synced 2025-02-28 02:05:26 +08:00
props method just modifies props now, doesn't need to return
This commit is contained in:
parent
3936cc4e23
commit
73c101b075
@ -16,7 +16,5 @@ export default class CategoryNavItem extends NavItem {
|
||||
props.params.categories = category ? category.slug() : 'uncategorized';
|
||||
props.href = app.route('category', props.params);
|
||||
props.label = category ? category.title() : 'Uncategorized';
|
||||
|
||||
return props;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user