mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-27 13:29:15 +07:00
🐛 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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user