Skip to content

Commit 3f3d68f

Browse files
authored
Revert "[DTRA] Farhan/DTRA-894/The markets from the 'Derived' list are not hi…" (#1529)
This reverts commit b834182.
1 parent 895fd01 commit 3f3d68f

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/utils/index.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -288,12 +288,7 @@ export function cloneCategories<T>(
288288
): TCategorizedSymbolItem<T>[] {
289289
const categorized: TCategorizedSymbolItem<T>[] = [];
290290
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-
}
291+
categorized.push(cloneCategory<T>(category, transformItem));
297292
}
298293

299294
return categorized;

0 commit comments

Comments
 (0)