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:
parent
85ebe7b8d5
commit
8f3c8ba80e
@ -20,7 +20,7 @@ function isStepView(selectedTask?: TaskWithSteps, selectedStep?: StepWithNotes)
|
|||||||
}
|
}
|
||||||
|
|
||||||
function isGroupWithTasks(group: any): group is GroupWithTasks {
|
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({
|
export function MobileLayout({
|
||||||
|
Loading…
Reference in New Issue
Block a user