Skip to content

Commit

Permalink
fix(owner): fixing ownership routing (#2553)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe-lyons authored May 13, 2021
1 parent 16a43be commit 66d79be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datahub-web-react/src/app/entity/user/UserDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default function UserDetails({ ownerships, subview, item, urn }: Props) {
};

if (!subview && Object.keys(ownerships).length > 0) {
const firstEntityType = Object.keys(ownerships)[0].toLowerCase();
const firstEntityType = entityRegistry.getPathName(Object.keys(ownerships)[0] as EntityType);
const key = toMenuKey(Subview.Ownership, firstEntityType);
setSelectedEntityType(key);
}
Expand Down

0 comments on commit 66d79be

Please sign in to comment.