1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 01:36:22 +00:00

resolved conflict

This commit is contained in:
Nguyễn Việt Hưng
2018-05-25 18:42:02 +07:00
87 changed files with 1586 additions and 235 deletions

View File

@@ -148,7 +148,9 @@ class SideNav extends React.Component {
const relatedTags = this.getRelatedTags(this.getActiveTags(location.pathname), data.noteMap)
let tagList = _.sortBy(data.tagNoteMap.map(
(tag, name) => ({ name, size: tag.size, related: relatedTags.has(name) })
), ['name'])
), ['name']).filter(
tag => tag.size > 0
)
if (config.sortTagsBy === 'COUNTER') {
tagList = _.sortBy(tagList, item => (0 - item.size))
}