mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-03 06:03:26 +00:00
fix(owner): fixing ownership routing (#2553)
This commit is contained in:
parent
16a43be605
commit
66d79be4b1
@ -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);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user