From 97133010af23dc1e70462dd9d286967459ff8637 Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 25 Jan 2023 16:23:46 +0100 Subject: [PATCH] fix(quick actions): don't throw an error message when selecting the last items with the arrow keys --- src/components/quick-actions/quick-actions.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/quick-actions/quick-actions.vue b/src/components/quick-actions/quick-actions.vue index 61bcc1cce..f253fc620 100644 --- a/src/components/quick-actions/quick-actions.vue +++ b/src/components/quick-actions/quick-actions.vue @@ -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'