Skip to content

Commit

Permalink
fix(CommandPalette): slice from computed options
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jul 17, 2022
1 parent 5e4c49a commit 503b9a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/components/navigation/CommandPalette.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
Expand Down

0 comments on commit 503b9a6

Please sign in to comment.