Check for result before trying to populate score card

This commit is contained in:
Sebastian Serth
2020-11-14 00:26:36 +01:00
parent 3cedcf5736
commit be9cc8790c

View File

@ -48,6 +48,10 @@ CodeOceanEditorEvaluation = {
},
printScoringResult: function (result, index) {
if (result === undefined || result === null) {
return;
}
$('#results').show();
let card;
if (result.file_role === 'teacher_defined_linter') {