Skip to content

Open-source gym & body-weight tracker, now in the App Store (iPhone + Apple Watch) and as an Android APK. Plan routines, log workouts, see which muscles are trained, import from Strong/Hevy/FitNotes. Self-host it or use it on the phone alone.

cascade: fixed-weight only, never overwrite done sets

root0109857249a8
diff --git a/frontend/src/views/Workout.jsx b/frontend/src/views/Workout.jsx
index 79397d81c..14260e4ea 100644
--- a/frontend/src/views/Workout.jsx
+++ b/frontend/src/views/Workout.jsx
@@ -186,9 +186,11 @@ function ActiveWorkout() {
// Changing a weight cascades to the following sets of the same phase, so a
// heavier bar carries through the set instead of retyping every row.
if (field === 'w') {
+ const cfg = e.target || e
+ if (cfg.weightPrescription?.kind === 'percentage') return
const warm = !!e.sets[i].warmup
for (let j = i + 1; j < e.sets.length; j++) {
- if (!!e.sets[j].warmup === warm) {
+ if (!!e.sets[j].warmup === warm && !e.sets[j].done) {
if (v == null) delete e.sets[j][field]; else e.sets[j][field] = v
}
}