Skip to content

Commit

Permalink
fix: use reverse to fix data issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Feb 18, 2021
1 parent ead5478 commit 2e326c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/public/js/support/commit-convert.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function commit_to_author_map(data) {

function commit_by_days(data) {
let dayMap = {};
for (let datum of data) {
for (let datum of data.reverse()) {
let day = formatDate(datum.date);
if (dayMap[day]) {
dayMap[day].value++;
Expand Down

0 comments on commit 2e326c0

Please sign in to comment.