Render grouped sessions when local list is empty
This commit is contained in:
committed by
Teknium
parent
3fc67b7333
commit
0f500fc41d
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user