catalog-react: temporarily disable some routing checks
Signed-off-by: Vincenzo Scamporlino <vincenzos@spotify.com>
This commit is contained in:
@@ -47,7 +47,13 @@ export type EntityRefLinkProps = {
|
||||
export const EntityRefLink = forwardRef<any, EntityRefLinkProps>(
|
||||
(props, ref) => {
|
||||
const { entityRef, defaultKind, title, children, ...linkProps } = props;
|
||||
const entityRoute = useRouteRef(entityRouteRef);
|
||||
let entityRoute = () => '';
|
||||
try {
|
||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||
entityRoute = useRouteRef(entityRouteRef);
|
||||
} catch (e) {
|
||||
/* */
|
||||
}
|
||||
|
||||
let kind;
|
||||
let namespace;
|
||||
|
||||
Reference in New Issue
Block a user