diff --git a/src/runtime/components/navigation/CommandPalette.vue b/src/runtime/components/navigation/CommandPalette.vue index 117e905d..f8ddf492 100644 --- a/src/runtime/components/navigation/CommandPalette.vue +++ b/src/runtime/components/navigation/CommandPalette.vue @@ -75,13 +75,13 @@ onMounted(() => { activateFirstOption() }) -const options: ComputedRef>> = computed(() => defu({}, { +const options: ComputedRef>> = computed(() => defu({}, props.options, { fuseOptions: { keys: ['label'] }, resultLimit: 12, matchAllWhenSearchEmpty: true -}, props.options)) +})) const fuse = props.groups.reduce((acc, group) => { const fuse = useFuse(query, group.commands, defu({}, group.options || {}, options.value))