Skip to content

Commit 8a259e4

Browse files
committed
fix(ContentSearch): de-duplicate description and suffix
1 parent 9d13653 commit 8a259e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/runtime/components/content/ContentSearch.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,13 @@ function mapLinksItems(links: T[]): ContentSearchItem[] {
152152
return links.flatMap(link => [{
153153
...link,
154154
suffix: link.description,
155+
description: undefined,
155156
icon: link.icon || appConfig.ui.icons.file
156157
}, ...(link.children?.map(child => ({
157158
...child,
158159
prefix: link.label + ' >',
159160
suffix: child.description,
161+
description: undefined,
160162
icon: child.icon || link.icon || appConfig.ui.icons.file
161163
})) || [])])
162164
}

0 commit comments

Comments
 (0)