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: fix Topic component causing stack overflow and freezing the app (#11609)

Tony600cb85001f5
diff --git a/src/app/[variants]/(mobile)/chat/features/Topic/index.tsx b/src/app/[variants]/(mobile)/chat/features/Topic/index.tsx
index ba722642162..62f26ac8ede 100644
--- a/src/app/[variants]/(mobile)/chat/features/Topic/index.tsx
+++ b/src/app/[variants]/(mobile)/chat/features/Topic/index.tsx
@@ -1,5 +1,6 @@
import { Flexbox } from '@lobehub/ui';
+import TopicListContent from '@/app/[variants]/(main)/agent/_layout/Sidebar/Topic/TopicListContent';
import TopicSearchBar from '@/app/[variants]/(main)/agent/_layout/Sidebar/Topic/TopicSearchBar';
import TopicModal from './features/TopicModal';
@@ -14,7 +15,7 @@ const Topic = () => {
style={{ marginInline: -8, overflow: 'hidden', position: 'relative' }}
width={'calc(100% + 16px)'}
>
- <Topic />
+ <TopicListContent />
</Flexbox>
</Flexbox>
</TopicModal>