Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

History fixes and misc about page fixes #5559

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions app/common/lib/historyUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ const sortTimeDescending = (left, right) => {
}

module.exports.getHistory = (sites) => {
sites = makeImmutable(sites) || new Immutable.List()
return sites.filter((site) => siteUtil.isHistoryEntry(site))
.sort(sortTimeDescending)
.slice(-aboutHistoryMaxEntries)
sites = makeImmutable(sites) || new Immutable.Map()
return sites.toList()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

.filter((site) => siteUtil.isHistoryEntry(site))
.sort(sortTimeDescending)
.slice(-aboutHistoryMaxEntries)
}

const getDayString = (entry, locale) => {
Expand Down