Skip to content

Commit

Permalink
fix: undefined item when using j/k akeyboards shortcuts in empty feed
Browse files Browse the repository at this point in the history
Signed-off-by: Patrizio Bekerle <patrizio@bekerle.com>
  • Loading branch information
pbek committed Jun 13, 2024
1 parent 6478763 commit c9e326d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ You can also check [on GitHub](https://github.com/nextcloud/news/releases), the
### Changed

### Fixed
- fix undefined item when using `j` and `k` keyboards shortcuts in an empty feed (#2689)

# Releases
## [25.0.0-alpha7] - 2024-06-10
Expand Down
4 changes: 4 additions & 0 deletions src/components/feed-display/FeedItemDisplayList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,10 @@ export default Vue.extend({
},
// Trigger the click event programmatically to benefit from the item handling inside the FeedItemRow component
clickItem(item: FeedItem, alignToTop = false) {

Check warning on line 198 in src/components/feed-display/FeedItemDisplayList.vue

View workflow job for this annotation

GitHub Actions / eslint node

'alignToTop' is assigned a value but never used
if (!item) {
return
}
const refName = 'feedItemRow' + item.id
const ref = this.$refs[refName]
// Make linter happy
Expand Down

0 comments on commit c9e326d

Please sign in to comment.