Fix error when NoteSelector has zero results

This commit is contained in:
Jonatan Heyman 2024-09-07 12:15:35 +02:00
parent 7e1f01471a
commit 982f95a2c7

View File

@ -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) {