We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 895fd01 commit 3f3d68fCopy full SHA for 3f3d68f
src/utils/index.ts
@@ -288,12 +288,7 @@ export function cloneCategories<T>(
288
): TCategorizedSymbolItem<T>[] {
289
const categorized: TCategorizedSymbolItem<T>[] = [];
290
for (const category of categories) {
291
- if (category.hasSubgroup) {
292
- const subgroups = category.subgroups.map(subgroup => cloneCategory<T>(subgroup, transformItem));
293
- categorized.push(({ ...category, subgroups } as unknown) as TCategorizedSymbolItem<T>);
294
- } else {
295
- categorized.push(cloneCategory<T>(category, transformItem));
296
- }
+ categorized.push(cloneCategory<T>(category, transformItem));
297
}
298
299
return categorized;
0 commit comments