diff --git a/src/views/StockCommunity/components/ChannelSidebar/index.tsx b/src/views/StockCommunity/components/ChannelSidebar/index.tsx index 296161de..398887da 100644 --- a/src/views/StockCommunity/components/ChannelSidebar/index.tsx +++ b/src/views/StockCommunity/components/ChannelSidebar/index.tsx @@ -623,18 +623,11 @@ const ChannelSidebar: React.FC = ({ '& option[value=""]': { color: 'gray.500' }, }} > - {categories - .filter(cat => !cat.isSystem) // 过滤掉系统分类 - .map(category => ( - - )) - } - {/* 如果没有用户分类,显示默认选项 */} - {categories.filter(cat => !cat.isSystem).length === 0 && ( - - )} + {categories.map(category => ( + + ))}