diff --git a/openmetadata-ui/src/main/resources/ui/src/constants/constants.ts b/openmetadata-ui/src/main/resources/ui/src/constants/constants.ts index b50c6115398..26415dc29c1 100644 --- a/openmetadata-ui/src/main/resources/ui/src/constants/constants.ts +++ b/openmetadata-ui/src/main/resources/ui/src/constants/constants.ts @@ -458,13 +458,6 @@ export const getAddCustomPropertyPath = (entityTypeFQN: string) => { return path; }; -export const getCustomEntityPath = (entityTypeFQN: string) => { - let path = ROUTES.CUSTOM_ENTITY_DETAIL; - path = path.replace(PLACEHOLDER_ENTITY_TYPE_FQN, entityTypeFQN); - - return path; -}; - export const getCreateUserPath = (bot: boolean) => { let path = bot ? ROUTES.CREATE_USER_WITH_BOT : ROUTES.CREATE_USER; diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/TableUtils.tsx b/openmetadata-ui/src/main/resources/ui/src/utils/TableUtils.tsx index 731a8d47528..51add2faf42 100644 --- a/openmetadata-ui/src/main/resources/ui/src/utils/TableUtils.tsx +++ b/openmetadata-ui/src/main/resources/ui/src/utils/TableUtils.tsx @@ -23,7 +23,6 @@ import { ReactComponent as TopicIcon } from '../assets/svg/topic-grey.svg'; import PopOver from '../components/common/popover/PopOver'; import { FQN_SEPARATOR_CHAR } from '../constants/char.constants'; import { - getCustomEntityPath, getDashboardDetailsPath, getDatabaseDetailsPath, getDatabaseSchemaDetailsPath, @@ -34,6 +33,7 @@ import { getTableDetailsPath, getTopicDetailsPath, } from '../constants/constants'; +import { GlobalSettingsMenuCategory } from '../constants/globalSettings.constants'; import { EntityType, FqnPart } from '../enums/entity.enum'; import { SearchIndex } from '../enums/search.enum'; import { ConstraintTypes, PrimaryTableDataTypes } from '../enums/table.enum'; @@ -44,7 +44,7 @@ import { getPartialNameFromTableFQN, getTableFQNFromColumnFQN, } from './CommonUtils'; -import { getGlossaryPath } from './RouterUtils'; +import { getGlossaryPath, getSettingPath } from './RouterUtils'; import { ordinalize } from './StringsUtils'; import SVGIcons, { Icons } from './SvgUtils'; @@ -217,7 +217,10 @@ export const getEntityLink = ( return getEditWebhookPath(fullyQualifiedName); case EntityType.TYPE: - return getCustomEntityPath(fullyQualifiedName); + return getSettingPath( + GlobalSettingsMenuCategory.CUSTOM_ATTRIBUTES, + `${fullyQualifiedName}s` + ); case EntityType.MLMODEL: case SearchIndex.MLMODEL: