Skip to content

Commit c7cfe98

Browse files
committed
MOBILE-1315 grades: Fix table with hidden grades rendering
1 parent 9d2428e commit c7cfe98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/addons/grades/services/grades.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ angular.module('mm.addons.grades')
5757
maxDepth = table.tables[0]['maxdepth'];
5858
for (var el in tabledata) {
5959
// This is a typical row.
60-
if (typeof(tabledata[el]["leader"]) === "undefined") {
60+
if (!angular.isArray(tabledata[el]) && typeof(tabledata[el]["leader"]) === "undefined") {
6161
for (var col in tabledata[el]) {
6262
returnedColumns.push(col);
6363
}

0 commit comments

Comments
 (0)