FIX: prevents error when opening a composer from a tag page (#10596)

This commit is contained in:
Joffrey JAFFEUX 2020-09-04 15:47:22 +02:00 committed by GitHub
parent 58b97ace23
commit ed05839dfc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,4 @@
import { makeArray } from "discourse-common/lib/helpers";
import I18n from "I18n";
import DiscourseRoute from "discourse/routes/discourse";
import Composer from "discourse/models/composer";
@ -199,7 +200,7 @@ export default DiscourseRoute.extend(FilterModeMixin, {
"tags",
[
controller.get("model.id"),
...controller.get("additionalTags"),
...makeArray(controller.additionalTags),
].filter(Boolean)
);
}