Fix mobile layout: recent and frequent task groups now display correctly - Fixed isGroupWithTasks function to accept both string and number IDs - Virtual groups use negative number IDs (-1, -2) which were being rejected - Mobile layout now properly shows Recent Tasks and Frequent Tasks groups

This commit is contained in:
Sean Sube 2025-06-17 20:41:02 -05:00
parent 85ebe7b8d5
commit 8f3c8ba80e
No known key found for this signature in database
GPG Key ID: 3EED7B957D362AF1

View File

@ -20,7 +20,7 @@ function isStepView(selectedTask?: TaskWithSteps, selectedStep?: StepWithNotes)
}
function isGroupWithTasks(group: any): group is GroupWithTasks {
return group && typeof group.id === 'string' && Array.isArray(group.tasks);
return group && (typeof group.id === 'string' || typeof group.id === 'number') && Array.isArray(group.tasks);
}
export function MobileLayout({