diff --git a/src/components/cases/tasks-tab.tsx b/src/components/cases/tasks-tab.tsx index b01488a..eb12757 100644 --- a/src/components/cases/tasks-tab.tsx +++ b/src/components/cases/tasks-tab.tsx @@ -95,6 +95,10 @@ export function CaseTasksTab({ caseId }: { caseId: string }) { completed_at: checked ? (new Date().toISOString() as any) : null, }) .eq("id", t.id); + if (checked) { + // Spawn the next task in the workflow chain (if any) + await spawnNextWorkflowTask(t.id); + } }; const today = startOfDay(new Date());