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