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