mirror of
https://github.com/heyman/heynote.git
synced 2024-12-22 23:00:38 +01:00
Fix error when NoteSelector has zero results
This commit is contained in:
parent
7e1f01471a
commit
982f95a2c7
@ -90,6 +90,9 @@
|
||||
]),
|
||||
|
||||
onKeydown(event) {
|
||||
if (this.filteredItems.length === 0) {
|
||||
return
|
||||
}
|
||||
const path = this.filteredItems[this.selected].path
|
||||
if (event.key === "ArrowDown") {
|
||||
if (this.selected === this.filteredItems.length - 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user