fix(CommandPalette): slice from computed options

This commit is contained in:
Benjamin Canac
2022-07-17 14:03:46 +02:00
parent 5e4c49ae3a
commit 503b9a6b5c

View File

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