summaryrefslogtreecommitdiff
path: root/makima/frontend/src/routes/directives.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'makima/frontend/src/routes/directives.tsx')
-rw-r--r--makima/frontend/src/routes/directives.tsx4
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>