Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix(onboarding): hide ModeSwitch in production environment (#14760)

Inneidc86f38dc16d
diff --git a/src/features/Onboarding/Agent/index.tsx b/src/features/Onboarding/Agent/index.tsx
index 4ba6dc624bc..96d96282e2e 100644
--- a/src/features/Onboarding/Agent/index.tsx
+++ b/src/features/Onboarding/Agent/index.tsx
@@ -273,9 +273,9 @@ const AgentOnboardingPage = memo(() => {
</Drawer>
)}
</Flexbox>
- <ModeSwitch
- actions={
- isDev ? (
+ {isDev && (
+ <ModeSwitch
+ actions={
<>
<AgentOnboardingDebugExportButton
agentId={onboardingAgentId}
@@ -294,9 +294,9 @@ const AgentOnboardingPage = memo(() => {
{t('agent.modeSwitch.reset')}
</Button>
</>
- ) : undefined
- }
- />
+ }
+ />
+ )}
</OnboardingContainer>
);
});