refactor: Simplify chat menu items rendering in SiderBar

This commit is contained in:
1808837298@qq.com
2025-03-08 19:06:49 +08:00
parent 3ad96d3b4e
commit 867187ab4d

View File

@@ -294,8 +294,6 @@ const SiderBar = () => {
}} }}
> >
{/* Chat Section - Only show if there are chat items */} {/* Chat Section - Only show if there are chat items */}
{chatItems.length > 0 && (
<>
{chatMenuItems.map((item) => { {chatMenuItems.map((item) => {
if (item.items && item.items.length > 0) { if (item.items && item.items.length > 0) {
return ( return (
@@ -325,8 +323,7 @@ const SiderBar = () => {
); );
} }
})} })}
</>
)}
{/* Divider */} {/* Divider */}
<Divider style={dividerStyle} /> <Divider style={dividerStyle} />