From 503b9a6b5c2e31152e7ea42aa059e595a4a92c17 Mon Sep 17 00:00:00 2001 From: Benjamin Canac Date: Sun, 17 Jul 2022 14:03:46 +0200 Subject: [PATCH] fix(CommandPalette): slice from computed options --- src/runtime/components/navigation/CommandPalette.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/components/navigation/CommandPalette.vue b/src/runtime/components/navigation/CommandPalette.vue index 6f57ca53..4b935106 100644 --- a/src/runtime/components/navigation/CommandPalette.vue +++ b/src/runtime/components/navigation/CommandPalette.vue @@ -94,7 +94,7 @@ const groupedResults = computed(() => { return props.groups.map(group => ({ key: group.key, label: group.label, - commands: results.value.map(result => result.item).filter(item => item.group === group.key).slice(0, props.options.resultLimit) + commands: results.value.map(result => result.item).filter(item => item.group === group.key).slice(0, options.value.resultLimit) })).filter(group => group.commands.length) })