diff --git a/frontend/src/components/procedural/StepChecklist.tsx b/frontend/src/components/procedural/StepChecklist.tsx index 5823eff9..3bdd4942 100644 --- a/frontend/src/components/procedural/StepChecklist.tsx +++ b/frontend/src/components/procedural/StepChecklist.tsx @@ -1,9 +1,9 @@ import { CheckCircle2, Circle, ArrowRight } from 'lucide-react' -import type { ProceduralStep } from '@/types' +import type { RuntimeStep } from '@/types' import { cn } from '@/lib/utils' interface StepChecklistProps { - steps: ProceduralStep[] + steps: RuntimeStep[] currentStepIndex: number completedStepIds: Set onStepClick: (index: number) => void @@ -16,7 +16,8 @@ export function StepChecklist({ steps, currentStepIndex, completedStepIds, onSte const sectionVisibility = new Set() let prevSection: string | undefined for (let i = 0; i < procedureSteps.length; i++) { - const header = procedureSteps[i].section_header + const s = procedureSteps[i] + const header = 'section_header' in s ? s.section_header : undefined if (header && header !== prevSection) sectionVisibility.add(i) if (header) prevSection = header } @@ -32,7 +33,7 @@ export function StepChecklist({ steps, currentStepIndex, completedStepIds, onSte
{showSection && (
- {step.section_header} + {'section_header' in step ? step.section_header : undefined}
)}