Skip to content

Commit

Permalink
fix: treat component props as immutable to make react happy again (#1421
Browse files Browse the repository at this point in the history
)
  • Loading branch information
B4nan authored Jan 21, 2025
1 parent 89a564d commit b8d19f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apify-docs-theme/src/theme/MDXComponents/A.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default function MDXA(props) {
const { siteConfig } = useDocusaurusContext();

if (props.href?.startsWith(siteConfig.url)) {
props.target = '_self';
props = { ...props, target: '_self' };
}

// absolute links in README, e.g. in the SDK or API Client docs, need to be converted to local `to` links
Expand Down

0 comments on commit b8d19f3

Please sign in to comment.