fixing user and group links in search results (#3383)

This commit is contained in:
Gabe Lyons 2021-10-13 10:38:44 -07:00 committed by GitHub
parent ebe0b3f7c1
commit c25b2e97e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -73,7 +73,7 @@ export const Preview = ({
membersCount?: number;
}): JSX.Element => {
const entityRegistry = useEntityRegistry();
const url = entityRegistry.getEntityUrl(EntityType.Dataset, urn);
const url = entityRegistry.getEntityUrl(EntityType.CorpGroup, urn);
return (
<PreviewContainer>

View File

@ -66,7 +66,7 @@ export const Preview = ({
title?: string | undefined;
}): JSX.Element => {
const entityRegistry = useEntityRegistry();
const url = entityRegistry.getEntityUrl(EntityType.Dataset, urn);
const url = entityRegistry.getEntityUrl(EntityType.CorpUser, urn);
return (
<PreviewContainer>