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

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

diff --git a/app/assets/javascripts/discourse/app/routes/tags-show.js b/app/assets/javascripts/discourse/app/routes/tags-show.js
index 6fc84ec..c6d2aa7 100644
--- a/app/assets/javascripts/discourse/app/routes/tags-show.js
+++ b/app/assets/javascripts/discourse/app/routes/tags-show.js
@@ -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)
               );
             }

GitHub sha: ed05839d

This commit appears in #10596 which was merged by jjaffeux.

This commit has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/the-tag-field-is-not-pre-filled-anymore-in-composer/163018/4