From e40903e79801a05917e089f159971c810d43440f Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 14 Apr 2026 23:43:09 +0200 Subject: [PATCH] Update routine summary and effect handling --- src/app/ProjectSchedulePane.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/app/ProjectSchedulePane.tsx b/src/app/ProjectSchedulePane.tsx index e9e9b8d2..8ccb3f10 100644 --- a/src/app/ProjectSchedulePane.tsx +++ b/src/app/ProjectSchedulePane.tsx @@ -109,7 +109,11 @@ function getRoutineSummary( summaryParts.push(formatControlEffectValue(pathEffect)); } } else { - summaryParts.push(formatControlEffectValue(routine.effects[0]!)); + const effect = heldSteps[0]; + + if (effect?.type === "controlEffect") { + summaryParts.push(formatControlEffectValue(effect.effect)); + } } summaryParts.push(`P${routine.priority}`); @@ -128,7 +132,8 @@ function isRoutineEffectInactive( ); } - const effect = routine.effects[0]; + const effect = + heldSteps[0]?.type === "controlEffect" ? heldSteps[0].effect : undefined; if (effect === undefined) { return false;