Skip to content

Commit

Permalink
Fixing problem with empty exercise hwGroups.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Krulis committed Feb 26, 2018
1 parent d1fb9a5 commit 8278854
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/EditExerciseLimits/EditExerciseLimits.js
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ class EditExerciseLimits extends Component {
}
warnDropLimits={this.doesHardwareGroupChangeDropLimits(
exercise.id,
exercise.hardwareGroups &&
exercise.hardwareGroups.length > 0 &&
exercise.hardwareGroups[0].id,
limits,
tests,
Expand All @@ -327,7 +327,7 @@ class EditExerciseLimits extends Component {
)}
onSubmit={this.transformAndSendHardwareGroups(
exercise.id,
exercise.hardwareGroups &&
exercise.hardwareGroups.length > 0 &&
exercise.hardwareGroups[0].id,
limits,
tests,
Expand Down

0 comments on commit 8278854

Please sign in to comment.