mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 05:25:16 -05:00
FEATURE: Make the tag_groups#search endpoint public. (#12643)
The method uses the "TagGroup#visible" method to respect the tag group visibility settings.
This commit is contained in:
@@ -55,9 +55,9 @@ export default MultiSelectComponent.extend(TagsMixin, {
|
||||
|
||||
_transformJson(context, json) {
|
||||
return json.results
|
||||
.sort((a, b) => a.id > b.id)
|
||||
.sort((a, b) => a.name > b.name)
|
||||
.map((result) => {
|
||||
return { id: result.text, name: result.text, count: result.count };
|
||||
return { id: result.name, name: result.name, count: result.count };
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user