diff --git a/app/views/evaluations/show.js.erb b/app/views/evaluations/show.js.erb index 0130fdaf5d..4ba37586ce 100644 --- a/app/views/evaluations/show.js.erb +++ b/app/views/evaluations/show.js.erb @@ -1,8 +1,6 @@ dodona.setHTMLExecuteScripts(document.querySelector("#evaluation-table-wrapper"), "<%= escape_javascript(render 'evaluation_table', feedbacks: @feedbacks, evaluation: @evaluation, users: @users) %>") -{ - const gradeTable = document.querySelector("#evaluation-grade-table-wrapper"); - if(gradeTable) { - dodona.setHTMLExecuteScripts(gradeTable, "<%= escape_javascript(render 'evaluation_grade_table', feedbacks: @feedbacks, evaluation: @evaluation, users: @users) %>") - } +const gradeTable = document.querySelector("#evaluation-grade-table-wrapper"); +if(gradeTable) { + dodona.setHTMLExecuteScripts(gradeTable, "<%= escape_javascript(render 'evaluation_grade_table', feedbacks: @feedbacks, evaluation: @evaluation, users: @users) %>") }