diff --git a/src/renderer/components/Sidebar.tsx b/src/renderer/components/Sidebar.tsx index d936d6f..51b52f4 100644 --- a/src/renderer/components/Sidebar.tsx +++ b/src/renderer/components/Sidebar.tsx @@ -400,11 +400,7 @@ function ProjectGroup({ {expanded && (
- {visibleSessions.length === 0 ? ( -
- {isScratchpad ? 'No scratchpad chats yet' : 'No sessions yet'} -
- ) : ( + {visibleSessions.length > 0 && visibleSessions.map((session) => ( - )) - )} - {onNewSession && ( + ))} + {onNewSession ? ( + ) : ( + visibleSessions.length === 0 && ( +
+ {isScratchpad ? 'No scratchpad chats yet' : 'No sessions yet'} +
+ ) )}
)}