Revert "catalog-react: temporarily disable some routing checks"

This reverts commit a5000bf9cf235f35689f50aeaaa5f92fa458fe5f.

Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
Vincenzo Scamporlino
2023-10-05 22:24:19 +02:00
parent 0b38419cf6
commit 25d849affd
@@ -47,13 +47,7 @@ export type EntityRefLinkProps = {
export const EntityRefLink = forwardRef<any, EntityRefLinkProps>(
(props, ref) => {
const { entityRef, defaultKind, title, children, ...linkProps } = props;
let entityRoute = () => '';
try {
// eslint-disable-next-line react-hooks/rules-of-hooks
entityRoute = useRouteRef(entityRouteRef);
} catch (e) {
/* */
}
const entityRoute = useRouteRef(entityRouteRef);
let kind;
let namespace;