From 5974afc2e388614715853742f033d0ebe463d4ed Mon Sep 17 00:00:00 2001 From: Paulo Reis Date: Fri, 17 Aug 2018 16:17:53 +0100 Subject: [PATCH] Make sure that at least the last update (i.e. the current state) is shown to free users (even if it happened more than 24 hours ago), to allow labelling. --- services/web/public/coffee/ide/history/HistoryV2Manager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/history/HistoryV2Manager.coffee b/services/web/public/coffee/ide/history/HistoryV2Manager.coffee index 004221674f..66b4375c8e 100644 --- a/services/web/public/coffee/ide/history/HistoryV2Manager.coffee +++ b/services/web/public/coffee/ide/history/HistoryV2Manager.coffee @@ -410,7 +410,7 @@ define [ previousUpdate = update if !@$scope.history.userHasFullFeature and update.meta.end_ts < timestamp24hoursAgo - cutOffIndex = i + cutOffIndex = i or 1 # Make sure that we show at least one entry (to allow labelling). @$scope.history.freeHistoryLimitHit = true break