diff --git a/src/components/ChromeLink/ChromeLink.tsx b/src/components/ChromeLink/ChromeLink.tsx index 070fac809..0d54d45de 100644 --- a/src/components/ChromeLink/ChromeLink.tsx +++ b/src/components/ChromeLink/ChromeLink.tsx @@ -29,7 +29,7 @@ export interface LinkWrapperProps extends RefreshLinkProps { const LinkWrapper: React.FC = memo(({ href, isBeta, onLinkClick, className, currAppId, appId, children, tabIndex }) => { const linkRef = useRef(null); const moduleRoutes = useSelector(({ chrome: { moduleRoutes } }) => moduleRoutes); - const moduleEntry = useMemo(() => moduleRoutes.find((route) => href.includes(route.path)), [href, appId]); + const moduleEntry = useMemo(() => moduleRoutes.find((route) => href?.includes(route.path)), [href, appId]); const preloadTimeout = useRef(); let actionId = href.split('/').slice(2).join('/'); if (actionId.includes('/')) {