diff options
| author | soryu <soryu@soryu.co> | 2026-02-06 01:02:32 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-02-06 01:02:32 +0000 |
| commit | 8f725a7c64fbeb85ebeb59b54d2f774e9a0a59d6 (patch) | |
| tree | f66a7dd9190deb1a85b83da7302c85f7c171b69b /makima/frontend/src/routes/directives.tsx | |
| parent | 0fb5083e1f453b6b8dab402014f333e13df75733 (diff) | |
| download | soryu-8f725a7c64fbeb85ebeb59b54d2f774e9a0a59d6.tar.gz soryu-8f725a7c64fbeb85ebeb59b54d2f774e9a0a59d6.zip | |
Fix: Directive page and remove chain page
Diffstat (limited to 'makima/frontend/src/routes/directives.tsx')
| -rw-r--r-- | makima/frontend/src/routes/directives.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/makima/frontend/src/routes/directives.tsx b/makima/frontend/src/routes/directives.tsx index 51fd57a..35e5703 100644 --- a/makima/frontend/src/routes/directives.tsx +++ b/makima/frontend/src/routes/directives.tsx @@ -769,7 +769,7 @@ function ChainTab({ directive, graph }: { directive: DirectiveWithProgress; grap // Build edges from dependencies const stepEdges: Edge[] = []; directive.steps.forEach((step) => { - step.dependsOn.forEach((depName) => { + (step.dependsOn ?? []).forEach((depName) => { const depStep = directive.steps.find((s) => s.name === depName); if (depStep) { stepEdges.push({ @@ -919,7 +919,7 @@ function ChainTab({ directive, graph }: { directive: DirectiveWithProgress; grap {step.description && ( <p className="font-mono text-xs text-[#556677] mt-1">{step.description}</p> )} - {step.dependsOn.length > 0 && ( + {step.dependsOn?.length > 0 && ( <div className="font-mono text-[10px] text-[#556677] mt-1"> Depends on: {step.dependsOn.join(", ")} </div> |
