fix(quick actions): don't throw an error message when selecting the last items with the arrow keys
continuous-integration/drone/push Build is failing Details

This commit is contained in:
kolaente 2023-01-25 16:23:46 +01:00
parent 4576da0dd3
commit 97133010af
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -546,7 +546,7 @@ function select(parentIndex: number, index: number) {
}
let elems = resultRefs.value[parentIndex][index]
if (results.value[parentIndex].items.length === index) {
elems = resultRefs.value[parentIndex + 1][0]
elems = resultRefs.value[parentIndex + 1] ? resultRefs.value[parentIndex + 1][0] : undefined
}
if (
typeof elems === 'undefined'