Skip to content

Commit

Permalink
fix: correct tags ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Nov 25, 2020
1 parent a812346 commit ded5b51
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions app/assets/javascripts/views/tags/tags_view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,17 +103,6 @@ class TagsViewCtrl extends PureViewCtrl<{}, TagState> {
this.reloadNoteCounts();
}

/**
* Returns all officially saved tags as reported by the model manager.
* @access private
*/
getMappedTags() {
const tags = this.application.getItems(ContentType.Tag) as SNTag[];
return tags.sort((a, b) => {
return a.title < b.title ? -1 : 1;
});
}

beginStreamingItems() {
this.removeFoldersObserver = this.application.streamItems(
[ContentType.Component],
Expand All @@ -126,7 +115,7 @@ class TagsViewCtrl extends PureViewCtrl<{}, TagState> {
[ContentType.Tag, ContentType.SmartTag],
async (items) => {
await this.setState({
tags: this.getMappedTags(),
tags: this.application.getDisplayableItems(ContentType.Tag) as SNTag[],
smartTags: this.application.getSmartTags(),
});

Expand Down

0 comments on commit ded5b51

Please sign in to comment.