Skip to content

Commit

Permalink
fix autoexpand for record pages
Browse files Browse the repository at this point in the history
  • Loading branch information
dmfalke committed Jan 28, 2025
1 parent a8e65dd commit 65af7f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/libs/wdk-client/src/Utils/CategoryUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export function getAncestors(
},
[],
tree
).slice(0, -1);
);
}

// TODO Make this more genericL createCategoryNode and createWdkEntityNode (or, createLeafNode??)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export const RecordHeading = connect(
const parentCategories = Category.getAncestors(
this.props.categoryTree,
anchor
).slice(1);
); //.slice(1);
const parentCategoryIds = parentCategories.map(Category.getId);
const nextExpandedNavCats = Array.from(
new Set([
Expand Down

0 comments on commit 65af7f8

Please sign in to comment.