Skip to content

Commit

Permalink
fix table redirect link from databaseSchema tables (#14670)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashish8689 authored Jan 10, 2024
1 parent 810e1df commit c27b0cf
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import { ERROR_PLACEHOLDER_TYPE } from '../../enums/common.enum';
import { EntityType } from '../../enums/entity.enum';
import { DatabaseSchema } from '../../generated/entity/data/databaseSchema';
import { Table } from '../../generated/entity/data/table';
import entityUtilClassBase from '../../utils/EntityUtilClassBase';
import { getEntityName } from '../../utils/EntityUtils';

interface SchemaTablesTabProps {
Expand Down Expand Up @@ -80,7 +81,10 @@ function SchemaTablesTab({
<Link
className="break-word"
data-testid="table-name-link"
to={(EntityType.TABLE, record.fullyQualifiedName as string)}>
to={entityUtilClassBase.getEntityLink(
EntityType.TABLE,
record.fullyQualifiedName as string
)}>
{getEntityName(record)}
</Link>
</div>
Expand Down

0 comments on commit c27b0cf

Please sign in to comment.