mirror of
https://github.com/flarum/framework.git
synced 2025-02-23 16:14:10 +08:00
Clean up code
This commit is contained in:
parent
1ff5d94324
commit
38cf04522e
@ -11,10 +11,7 @@ export default function() {
|
||||
|
||||
if (tag) {
|
||||
const parent = tag.parent();
|
||||
let tags = [tag];
|
||||
if (parent) {
|
||||
tags.unshift(parent);
|
||||
}
|
||||
const tags = parent ? [parent, tag] : [tag];
|
||||
promise.then(component => component.tags = tags);
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user