mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-12 07:48:14 +00:00
UI: Fixed redirection link in add test suite page (#9464)
This commit is contained in:
parent
9bc4b08960
commit
1f8fff8aef
@ -72,7 +72,13 @@ const AddDataQualityTestV1: React.FC<AddDataQualityTestProps> = ({ table }) => {
|
|||||||
const [addIngestion, setAddIngestion] = useState(false);
|
const [addIngestion, setAddIngestion] = useState(false);
|
||||||
|
|
||||||
const breadcrumb = useMemo(() => {
|
const breadcrumb = useMemo(() => {
|
||||||
const { service, serviceType, fullyQualifiedName = '' } = table;
|
const {
|
||||||
|
service,
|
||||||
|
serviceType,
|
||||||
|
database,
|
||||||
|
databaseSchema,
|
||||||
|
fullyQualifiedName = '',
|
||||||
|
} = table;
|
||||||
|
|
||||||
const data: TitleBreadcrumbProps['titleLinks'] = [
|
const data: TitleBreadcrumbProps['titleLinks'] = [
|
||||||
{
|
{
|
||||||
@ -89,11 +95,13 @@ const AddDataQualityTestV1: React.FC<AddDataQualityTestProps> = ({ table }) => {
|
|||||||
name: getPartialNameFromTableFQN(fullyQualifiedName, [
|
name: getPartialNameFromTableFQN(fullyQualifiedName, [
|
||||||
FqnPart.Database,
|
FqnPart.Database,
|
||||||
]),
|
]),
|
||||||
url: getDatabaseDetailsPath(fullyQualifiedName),
|
url: getDatabaseDetailsPath(database?.fullyQualifiedName || ''),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: getPartialNameFromTableFQN(fullyQualifiedName, [FqnPart.Schema]),
|
name: getPartialNameFromTableFQN(fullyQualifiedName, [FqnPart.Schema]),
|
||||||
url: getDatabaseSchemaDetailsPath(fullyQualifiedName),
|
url: getDatabaseSchemaDetailsPath(
|
||||||
|
databaseSchema?.fullyQualifiedName || ''
|
||||||
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: getEntityName(table),
|
name: getEntityName(table),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user