mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 04:07:56 +01:00
fix(CommandPalette): slice from computed options
This commit is contained in:
@@ -94,7 +94,7 @@ const groupedResults = computed(() => {
|
|||||||
return props.groups.map(group => ({
|
return props.groups.map(group => ({
|
||||||
key: group.key,
|
key: group.key,
|
||||||
label: group.label,
|
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)
|
})).filter(group => group.commands.length)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user