Skip to content

Commit 616c7a2

Browse files
committed
Merge branch 'feat/sidebar-groups' of github.com:canerakdas/api-docs-tooling into feat/sidebar-groups
2 parents 6dd889c + 5383283 commit 616c7a2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/generators/web/ui/utils/sidebar.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ export const buildSideBarGroups = (items, defaultGroupName = 'Others') => {
4040
continue;
4141
}
4242

43-
const items = groups.get(resolvedCategory) ?? [];
44-
items.push({ label, link });
45-
groups.set(resolvedCategory, items);
43+
const groupItems = groups.get(resolvedCategory) ?? [];
44+
groupItems.push({ label, link });
45+
groups.set(resolvedCategory, groupItems);
4646
}
4747

4848
// Convert the groups map to an array while preserving the original order of categories

0 commit comments

Comments
 (0)