Commit 47a92439 by 1808837298@qq.com

refactor: Simplify chat menu items rendering in SiderBar

parent 69e6d5ce
...@@ -294,8 +294,6 @@ const SiderBar = () => { ...@@ -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 = () => { ...@@ -325,8 +323,7 @@ const SiderBar = () => {
); );
} }
})} })}
</>
)}
{/* Divider */} {/* Divider */}
<Divider style={dividerStyle} /> <Divider style={dividerStyle} />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment