diff --git a/app/assets/javascripts/discourse/templates/components/edit-category-tags.hbs b/app/assets/javascripts/discourse/templates/components/edit-category-tags.hbs index 36151b12afc..593d8357443 100644 --- a/app/assets/javascripts/discourse/templates/components/edit-category-tags.hbs +++ b/app/assets/javascripts/discourse/templates/components/edit-category-tags.hbs @@ -2,12 +2,14 @@ {{tag-chooser id="category-allowed-tags" - filterPlaceholder="category.tags_placeholder" tags=category.allowed_tags everyTag=true excludeSynonyms=true unlimitedTagCount=true onChange=(action (mut category.allowed_tags)) + options=(hash + filterPlaceholder="category.tags_placeholder" + ) }} @@ -45,8 +47,10 @@ {{tag-group-chooser id="category-required-tag-group" tagGroups=category.required_tag_groups - maximum=1 - filterPlaceholder="category.tag_group_selector_placeholder" + options=(hash + maximum=1 + filterPlaceholder="category.tag_group_selector_placeholder" + ) }} diff --git a/app/assets/javascripts/select-kit/components/tag-group-chooser.js.es6 b/app/assets/javascripts/select-kit/components/tag-group-chooser.js.es6 index 8857d8cd63f..24a3af4ba3a 100644 --- a/app/assets/javascripts/select-kit/components/tag-group-chooser.js.es6 +++ b/app/assets/javascripts/select-kit/components/tag-group-chooser.js.es6 @@ -47,7 +47,7 @@ export default MultiSelectComponent.extend(TagsMixin, { ).then(results => { if (results && results.length) { return results.filter(r => { - return !this.tagGroups.includes(this.getValue(r)); + return !makeArray(this.tagGroups).includes(this.getValue(r)); }); } });