Skip to content

Commit

Permalink
Fixing bug in exercise config form.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Krulis committed Apr 15, 2019
1 parent a57edc1 commit bec0336
Showing 1 changed file with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,20 @@ class EditExerciseSimpleConfigTestCompilation extends Component {
if (!extraFiles && !jarFiles) {
return false;
}
for (const files of Object.values(extraFiles)) {
if (files && files.length > 0) {
return true;

if (extraFiles) {
for (const files of Object.values(extraFiles)) {
if (files && files.length > 0) {
return true;
}
}
}
for (const files of Object.values(jarFiles)) {
if (files && files.length > 0) {
return true;

if (jarFiles) {
for (const files of Object.values(jarFiles)) {
if (files && files.length > 0) {
return true;
}
}
}
return false;
Expand Down

0 comments on commit bec0336

Please sign in to comment.