Files
flutter/lib/models
Nsimba Tamaku fd8545f997 fix: use unit IDs directly in Log.fromSetConfigData to prevent null on save
When adding an extra exercise during a workout, addExerciseAfterPage()
creates a SetConfigData with no unit objects loaded. Log.fromSetConfigData
was using the weightUnit/repetitionUnit setters which overwrite the default
IDs with null when the objects are null, causing the server to reject the
request with a ValidationError ("Repetitions unit must be present").

Fixes #1149

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-13 17:10:59 +01:00
..
2025-11-18 16:30:52 +01:00
2026-03-12 22:48:21 +05:30
2025-11-18 16:30:52 +01:00
2026-01-16 17:33:28 +01:00
2025-10-08 12:45:37 +02:00
2020-11-15 17:25:51 +01:00

flutter pub run build_runner build

flutter pub run build_runner watch