diff --git a/src/components/DevDocTemplate/index.tsx b/src/components/DevDocTemplate/index.tsx index a53fb4481..563608c44 100644 --- a/src/components/DevDocTemplate/index.tsx +++ b/src/components/DevDocTemplate/index.tsx @@ -251,6 +251,7 @@ const isVersionedIframe = VERSION_DROPDOWN.some( if (explicitChoice) { const isDark = explicitChoice === 'dark'; setDarkMode(isDark); + return; } setDarkMode(false); setKey('dark');