mirror of
https://github.com/datahub-project/datahub.git
synced 2025-10-12 09:25:23 +00:00
fixing user and group links in search results (#3383)
This commit is contained in:
parent
ebe0b3f7c1
commit
c25b2e97e8
@ -73,7 +73,7 @@ export const Preview = ({
|
|||||||
membersCount?: number;
|
membersCount?: number;
|
||||||
}): JSX.Element => {
|
}): JSX.Element => {
|
||||||
const entityRegistry = useEntityRegistry();
|
const entityRegistry = useEntityRegistry();
|
||||||
const url = entityRegistry.getEntityUrl(EntityType.Dataset, urn);
|
const url = entityRegistry.getEntityUrl(EntityType.CorpGroup, urn);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PreviewContainer>
|
<PreviewContainer>
|
||||||
|
@ -66,7 +66,7 @@ export const Preview = ({
|
|||||||
title?: string | undefined;
|
title?: string | undefined;
|
||||||
}): JSX.Element => {
|
}): JSX.Element => {
|
||||||
const entityRegistry = useEntityRegistry();
|
const entityRegistry = useEntityRegistry();
|
||||||
const url = entityRegistry.getEntityUrl(EntityType.Dataset, urn);
|
const url = entityRegistry.getEntityUrl(EntityType.CorpUser, urn);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<PreviewContainer>
|
<PreviewContainer>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user