mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 17:56:25 +00:00
sort by time & add FolderMark
This commit is contained in:
@@ -69,6 +69,9 @@ function remap (state) {
|
||||
|
||||
let articles = state.articles['team-' + activeUser.id]
|
||||
if (articles == null) articles = []
|
||||
articles.sort((a, b) => {
|
||||
return new Date(b.updatedAt) - new Date(a.updatedAt)
|
||||
})
|
||||
|
||||
let activeArticle = findWhere(articles, {key: status.articleKey})
|
||||
if (activeArticle == null) activeArticle = articles[0]
|
||||
|
||||
Reference in New Issue
Block a user