From 84f236f35d7ea750a37285479943b52d70a8722b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ad=C3=A1mek?= Date: Tue, 21 Jan 2025 11:56:14 +0100 Subject: [PATCH] fix: treat component props as immutable to make react happy again --- apify-docs-theme/src/theme/MDXComponents/A.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apify-docs-theme/src/theme/MDXComponents/A.js b/apify-docs-theme/src/theme/MDXComponents/A.js index 575d08f3a..6db5f18fd 100644 --- a/apify-docs-theme/src/theme/MDXComponents/A.js +++ b/apify-docs-theme/src/theme/MDXComponents/A.js @@ -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