We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a57edc1 commit bec0336Copy full SHA for bec0336
src/components/forms/EditExerciseSimpleConfigForm/EditExerciseSimpleConfigTestCompilation.js
@@ -49,14 +49,20 @@ class EditExerciseSimpleConfigTestCompilation extends Component {
49
if (!extraFiles && !jarFiles) {
50
return false;
51
}
52
- for (const files of Object.values(extraFiles)) {
53
- if (files && files.length > 0) {
54
- return true;
+
+ if (extraFiles) {
+ for (const files of Object.values(extraFiles)) {
55
+ if (files && files.length > 0) {
56
+ return true;
57
+ }
58
59
- for (const files of Object.values(jarFiles)) {
60
61
+ if (jarFiles) {
62
+ for (const files of Object.values(jarFiles)) {
63
64
65
66
67
68
0 commit comments