Skip to content

Commit

Permalink
Sitecore#1834 link href updated with the ternary operator
Browse files Browse the repository at this point in the history
  • Loading branch information
sumon1991 committed Jul 25, 2024
1 parent 74010c4 commit 0732b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sitecore-jss-react/src/components/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export const Link: React.FC<LinkProps> = withFieldMetadata<LinkProps, HTMLAnchor
const querystring = link.querystring ? `?${link.querystring}` : '';

const anchorAttrs: { [attr: string]: unknown } = {
href: `${link.href}${querystring}${anchor}`,
href: link.href ? `${link.href}${querystring}${anchor}` : undefined,
className: link.class,
title: link.title,
target: link.target,
Expand Down

0 comments on commit 0732b8b

Please sign in to comment.