Render grouped sessions when local list is empty

This commit is contained in:
D'Angelo Rodriguez 2026-06-06 02:19:37 -04:00 committed by Teknium
parent 3fc67b7333
commit 0f500fc41d

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) => {