fix(classrooms): corregir renderizado de aulas presenciales, metricas de ocupacion y asignacion de cursadas

This commit is contained in:
2026-09-19 11:27:50 -03:00
parent 5087e22988
commit b9a11d810a
5 changed files with 127 additions and 37 deletions
+3
View File
@@ -16,6 +16,9 @@ try {
const nunjucksRuntime = require('nunjucks/src/runtime');
const origMemberLookup = nunjucksRuntime.memberLookup;
nunjucksRuntime.memberLookup = function(obj, val) {
if (obj && val === 'items' && Array.isArray(obj.items)) {
return obj.items;
}
if (obj && val === 'get' && typeof obj.get !== 'function') {
return function(key, defaultVal) {
return (obj[key] !== undefined && obj[key] !== null) ? obj[key] : defaultVal;