From 20b399318eb31f1ec7826d2a46234f893b1c36fb Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 15 Apr 2015 16:11:04 -0400 Subject: [PATCH] Fix off by one issue --- static/js/directives/repo-view/repo-panel-tags.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/directives/repo-view/repo-panel-tags.js b/static/js/directives/repo-view/repo-panel-tags.js index cf2f25595..74e83847a 100644 --- a/static/js/directives/repo-view/repo-panel-tags.js +++ b/static/js/directives/repo-view/repo-panel-tags.js @@ -194,7 +194,7 @@ angular.module('quay').directive('repoPanelTags', function () { var next = tagData[i - 1]; if (new Date(current.time).getDate() != new Date(next.time).getDate()) { - tagData.splice(i - 1, 0, { + tagData.splice(i, 0, { 'date_break': true, 'date': new Date(current.time) });