mirror of
https://github.com/wger-project/flutter.git
synced 2026-11-28 17:08:29 +01:00
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>