docs: fix sidebar items not showing if they have same title in API reference (#11122)
This commit is contained in:
@@ -37,6 +37,7 @@ const TagPaths = ({ tag, className, paths }: TagPathsProps) => {
|
||||
addItems(pathItems, {
|
||||
section: SidebarItemSections.DEFAULT,
|
||||
parent: {
|
||||
type: "category",
|
||||
title: tag.name,
|
||||
path: "",
|
||||
changeLoaded: true,
|
||||
|
||||
@@ -73,8 +73,9 @@ const TagSectionSchema = ({ schema, tagName }: TagSectionSchemaProps) => {
|
||||
{
|
||||
section: SidebarItemSections.DEFAULT,
|
||||
parent: {
|
||||
type: "category",
|
||||
title: tagName,
|
||||
path: tagSlugName,
|
||||
path: "",
|
||||
changeLoaded: true,
|
||||
},
|
||||
indexPosition: 0,
|
||||
|
||||
Reference in New Issue
Block a user