Clean up code

This commit is contained in:
Franz Liedke 2015-12-11 21:16:38 +01:00
parent 1ff5d94324
commit 38cf04522e

View File

@ -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);
} }
}); });