From 25d849affd79b6b237b1f29f1d03aafe48c85159 Mon Sep 17 00:00:00 2001 From: Vincenzo Scamporlino Date: Thu, 5 Oct 2023 22:24:19 +0200 Subject: [PATCH] Revert "catalog-react: temporarily disable some routing checks" This reverts commit a5000bf9cf235f35689f50aeaaa5f92fa458fe5f. Signed-off-by: Vincenzo Scamporlino --- .../src/components/EntityRefLink/EntityRefLink.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/plugins/catalog-react/src/components/EntityRefLink/EntityRefLink.tsx b/plugins/catalog-react/src/components/EntityRefLink/EntityRefLink.tsx index 47031b669c..d682abdc2b 100644 --- a/plugins/catalog-react/src/components/EntityRefLink/EntityRefLink.tsx +++ b/plugins/catalog-react/src/components/EntityRefLink/EntityRefLink.tsx @@ -47,13 +47,7 @@ export type EntityRefLinkProps = { export const EntityRefLink = forwardRef( (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;