FIX: tag intersection not populating (#6296)

* Fix for tag intersection not populating

* Fix prettier

* Add acceptance test for tags intersection
This commit is contained in:
James Kiesel
2018-08-22 23:22:47 -05:00
committed by Sam
parent db05ab1868
commit b2ce33be26
2 changed files with 48 additions and 3 deletions
@@ -184,9 +184,11 @@ export default Discourse.Route.extend({
var c = self.controllerFor("composer").get("model");
c.set(
"tags",
_.flatten(
[controller.get("model.id")],
controller.get("additionalTags")
_.compact(
_.flatten([
controller.get("model.id"),
controller.get("additionalTags")
])
)
);
}