From ded5b510237a818f69541f5dfe2a24395aca9625 Mon Sep 17 00:00:00 2001 From: Baptiste Grob <60621355+baptiste-grob@users.noreply.github.com> Date: Wed, 25 Nov 2020 19:28:24 +0100 Subject: [PATCH] fix: correct tags ordering --- app/assets/javascripts/views/tags/tags_view.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/app/assets/javascripts/views/tags/tags_view.ts b/app/assets/javascripts/views/tags/tags_view.ts index aa2f2a29e..3b36dfb0d 100644 --- a/app/assets/javascripts/views/tags/tags_view.ts +++ b/app/assets/javascripts/views/tags/tags_view.ts @@ -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], @@ -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(), });