Skip to content

Commit

Permalink
Add default value to chrome link href.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyperkid123 committed Jul 11, 2023
1 parent 2ae8fad commit 97462ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ChromeLink/ChromeLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface LinkWrapperProps extends RefreshLinkProps {
tabIndex?: number;
}

const LinkWrapper: React.FC<LinkWrapperProps> = memo(({ href, isBeta, onLinkClick, className, currAppId, appId, children, tabIndex }) => {
const LinkWrapper: React.FC<LinkWrapperProps> = memo(({ href = '', isBeta, onLinkClick, className, currAppId, appId, children, tabIndex }) => {
const linkRef = useRef<HTMLAnchorElement | null>(null);
const moduleRoutes = useSelector<ReduxState, RouteDefinition[]>(({ chrome: { moduleRoutes } }) => moduleRoutes);
const moduleEntry = useMemo(() => moduleRoutes.find((route) => href?.includes(route.path)), [href, appId]);
Expand Down

0 comments on commit 97462ab

Please sign in to comment.