Skip to content

Commit 65af7f8

Browse files
committed
fix autoexpand for record pages
1 parent a8e65dd commit 65af7f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/libs/wdk-client/src/Utils/CategoryUtils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ export function getAncestors(
157157
},
158158
[],
159159
tree
160-
).slice(0, -1);
160+
);
161161
}
162162

163163
// TODO Make this more genericL createCategoryNode and createWdkEntityNode (or, createLeafNode??)

packages/sites/genomics-site/webapp/wdkCustomization/js/client/components/records/GeneRecordClasses.GeneRecordClass.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const RecordHeading = connect(
8585
const parentCategories = Category.getAncestors(
8686
this.props.categoryTree,
8787
anchor
88-
).slice(1);
88+
); //.slice(1);
8989
const parentCategoryIds = parentCategories.map(Category.getId);
9090
const nextExpandedNavCats = Array.from(
9191
new Set([

0 commit comments

Comments
 (0)