Fix #3608 UI : Lineage side drawer link is not working properly. (#3609)

This commit is contained in:
Sachin Chaurasiya 2022-03-23 11:34:47 +05:30 committed by GitHub
parent e21ed969b3
commit 37f06efd32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -155,6 +155,7 @@ const EntityInfoDrawer = ({
<span className="tw-mr-2">{getEntityIcon(selectedNode.type)}</span>
{getHeaderLabel(
selectedNode.displayName ?? selectedNode.name,
selectedNode.name,
selectedNode.type,
isMainNode
)}

View File

@ -54,6 +54,7 @@ import { getEntityLink } from './TableUtils';
export const getHeaderLabel = (
v = '',
fqn: string,
type: string,
isMainNode: boolean,
separator = '.'
@ -72,7 +73,7 @@ export const getHeaderLabel = (
<span
className="tw-break-words description-text tw-self-center link-text tw-font-medium"
data-testid="lineage-entity">
<Link to={getEntityLink(type, v)}>
<Link to={getEntityLink(type, fqn)}>
{v.split(separator)[length - 1]}
</Link>
</span>