mirror of
https://github.com/chylex/Nextcloud-News.git
synced 2025-04-23 23:15:46 +02:00
Fix the highlighted item in reversed order
Signed-off-by: Michael Chang <github@micbase.com>
This commit is contained in:
parent
293028035c
commit
afe46c58b7
@ -7,6 +7,7 @@ The format is mostly based on [Keep a Changelog](https://keepachangelog.com/en/1
|
||||
### Changed
|
||||
|
||||
### Fixed
|
||||
- Fix the highlithed item when reverse ordering is selected (#1838)
|
||||
|
||||
# Releases
|
||||
## [18.2.0-beta2] - 2022-09-07
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user