summaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorMichael Chang <github@micbase.com>2022-09-09 21:20:49 -0500
committerBenjamin Brahmer <info@b-brahmer.de>2022-09-20 14:24:16 +0200
commitafe46c58b7cccf0fc4e1b048268e47d05eb424cc (patch)
tree2275c453eb018f235e1675742ed07e22400f7400 /js
parent293028035cd8c7c0d5f414abf22bb061d6a4f0bd (diff)
Fix the highlighted item in reversed order
Signed-off-by: Michael Chang <github@micbase.com>
Diffstat (limited to 'js')
-rw-r--r--js/controller/ContentController.js5
1 files changed, 0 insertions, 5 deletions
diff --git a/js/controller/ContentController.js b/js/controller/ContentController.js
index 94098d6c8..d35cc1c96 100644
--- a/js/controller/ContentController.js
+++ b/js/controller/ContentController.js
@@ -36,11 +36,6 @@ app.controller('ContentController', function (Publisher, FeedResource, ItemResou
this.getFirstItem = function () {
var orderedItems = this.getItems();
var item = orderedItems[0];
- var lastItem = orderedItems[orderedItems.length - 1];
- // If isOldestFirst is set, item should be the last item
- if (isOldestFirst()) {
- item = lastItem;
- }
if (item === undefined) {
return undefined;
}