Render grouped sessions when local list is empty

This commit is contained in:
D'Angelo Rodriguez
2026-06-07 23:44:04 -07:00
committed by Teknium
parent 3fc67b7333
commit 0f500fc41d
+2 -1
View File
@@ -1028,7 +1028,8 @@ function SidebarSessionsSection({
onReorder,
dndSensors
}: SidebarSessionsSectionProps) {
const showEmptyState = forceEmptyState || sessions.length === 0
const hasGroupedSessions = Boolean(groups?.some(group => group.sessions.length > 0))
const showEmptyState = forceEmptyState || (!hasGroupedSessions && sessions.length === 0)
const dndActive = sortable && !!onReorder
const renderRow = (session: SessionInfo) => {