lrf402788946 4 năm trước cách đây
mục cha
commit
31978fcda8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/service/lesson.js

+ 1 - 1
app/service/lesson.js

@@ -645,7 +645,7 @@ class LessonService extends CrudService {
       if (c) cla = c.name;
       for (const l of list) {
         const { subname, date } = l;
-        res.push({ subname, date, term, class: cla });
+        if (cla && subname && date && term) { res.push({ subname, date, term, class: cla }); }
       }
     }
     res = _.uniqWith(res, _.isEqual);