Skip to content

Commit b8d19f3

Browse files
authored
fix: treat component props as immutable to make react happy again (#1421)
1 parent 89a564d commit b8d19f3

File tree

1 file changed

+1
-1
lines changed
  • apify-docs-theme/src/theme/MDXComponents

1 file changed

+1
-1
lines changed

apify-docs-theme/src/theme/MDXComponents/A.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export default function MDXA(props) {
88
const { siteConfig } = useDocusaurusContext();
99

1010
if (props.href?.startsWith(siteConfig.url)) {
11-
props.target = '_self';
11+
props = { ...props, target: '_self' };
1212
}
1313

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

0 commit comments

Comments
 (0)