🐛 fix: fix Topic component causing stack overflow and freezing the app (#11609)

* Fixed Topic component causing stack overflow and freezing the app

* chore: lint code
This commit is contained in:
Tony
2026-01-20 07:06:26 -05:00
committed by GitHub
parent dbb928508f
commit 600cb85001

View File

@@ -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>