FIX: `TagDrop` uses `currentCategory` now (#12786)

FIX: TagDrop uses currentCategory now (#12786)

diff --git a/app/assets/javascripts/discourse/tests/integration/components/select-kit/tag-drop-test.js b/app/assets/javascripts/discourse/tests/integration/components/select-kit/tag-drop-test.js
index 6415f96..9947bac 100644
--- a/app/assets/javascripts/discourse/tests/integration/components/select-kit/tag-drop-test.js
+++ b/app/assets/javascripts/discourse/tests/integration/components/select-kit/tag-drop-test.js
@@ -11,15 +11,11 @@ import { set } from "@ember/object";
 
 function initTags(context) {
   const categories = context.site.categoriesList;
-  const parentCategory = categories.findBy("id", 2);
-  const childCategories = categories.filter(
-    (c) => c.parentCategory === parentCategory
-  );
+  const category = categories.findBy("id", 2);
 
   // top_tags
   context.setProperties({
-    firstCategory: parentCategory,
-    secondCategory: childCategories.firstObject,
+    currentCategory: category,
     tagId: "jeff",
   });
 }
@@ -55,8 +51,7 @@ discourseModule(
     componentTest("default", {
       template: hbs`
       {{tag-drop
-        firstCategory=firstCategory
-        secondCategory=secondCategory
+        currentCategory=currentCategory
         tagId=tagId
         options=(hash
           tagId=tagId
diff --git a/app/assets/javascripts/select-kit/addon/components/tag-drop.js b/app/assets/javascripts/select-kit/addon/components/tag-drop.js
index 16fb2ca..db19faa 100644
--- a/app/assets/javascripts/select-kit/addon/components/tag-drop.js
+++ b/app/assets/javascripts/select-kit/addon/components/tag-drop.js
@@ -115,8 +115,7 @@ export default ComboBoxComponent.extend(TagsMixin, {
   }),
 
   topTags: computed(
-    "firstCategory",
-    "secondCategory",
+    "currentCategory",
     "site.category_top_tags.[]",
     "site.top_tags.[]",
     function () {

GitHub sha: 2dfa1a26

This commit appears in #12786 which was approved by eviltrout. It was merged by CvX.