From 8f3c8ba80e43d0f4440247abdbeb261b8006f63d Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Tue, 17 Jun 2025 20:41:02 -0500 Subject: [PATCH] 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 --- client/src/layouts/MobileLayout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/layouts/MobileLayout.tsx b/client/src/layouts/MobileLayout.tsx index be452da..7f6f59e 100644 --- a/client/src/layouts/MobileLayout.tsx +++ b/client/src/layouts/MobileLayout.tsx @@ -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({