File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -174,24 +174,26 @@ const _useNavigation = () => {
174174 track ( 'Ask AI Opened' , { source : 'search-links' } )
175175 nuxtApp . $kapa ?. openModal ( )
176176 }
177- } , ...headerLinks . value . map ( ( link ) => {
178- // Remove `/docs` and `/enterprise` links from command palette
177+ } , ...headerLinks . value . flatMap ( ( link ) => {
179178 if ( link . search === false ) {
180- return {
181- label : link . label ,
182- icon : link . icon ,
183- children : link . children
184- }
179+ return ( link . children || [ ] ) . map ( child => ( {
180+ ...child ,
181+ label : `${ link . label } > ${ child . label } `
182+ } ) )
185183 }
186- return link
187- } ) . filter ( Boolean ) , {
184+ return [ link ]
185+ } ) , {
188186 label : 'Team' ,
189187 icon : 'i-lucide-users' ,
190188 to : '/team'
191189 } , {
192190 label : 'Design Kit' ,
193191 icon : 'i-lucide-palette' ,
194192 to : '/design-kit'
193+ } , {
194+ label : 'AI Evals' ,
195+ icon : 'i-lucide-brain' ,
196+ to : '/evals'
195197 } , {
196198 label : 'Newsletter' ,
197199 icon : 'i-lucide-mail' ,
You can’t perform that action at this time.
0 commit comments