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: setting highlight and memerid not responding error

rdmclin2f829bf7fdf11
diff --git a/src/app/[variants]/(main)/settings/chat-appearance/features/ChatAppearance/index.tsx b/src/app/[variants]/(main)/settings/chat-appearance/features/ChatAppearance/index.tsx
index 9486d91a67a..374de7a76f3 100644
--- a/src/app/[variants]/(main)/settings/chat-appearance/features/ChatAppearance/index.tsx
+++ b/src/app/[variants]/(main)/settings/chat-appearance/features/ChatAppearance/index.tsx
@@ -150,7 +150,7 @@ const ChatAppearance = memo(() => {
title={t('settingChatAppearance.highlighterTheme.title')}
variant={'filled'}
>
- <HighlighterPreview theme={general.highlighterTheme} />
+ <HighlighterPreview key={general.highlighterTheme} theme={general.highlighterTheme} />
</FormGroup>
<FormGroup
@@ -176,7 +176,7 @@ const ChatAppearance = memo(() => {
title={t('settingChatAppearance.mermaidTheme.title')}
variant={'filled'}
>
- <MermaidPreview theme={general.mermaidTheme} />
+ <MermaidPreview key={general.mermaidTheme} theme={general.mermaidTheme} />
</FormGroup>
</>
);