lrf402788946 il y a 4 ans
Parent
commit
aff1b85a78
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      app/service/school.js

+ 1 - 1
app/service/school.js

@@ -145,7 +145,7 @@ class SchoolService extends CrudService {
       console.error(rt);
       console.error(rt);
       let ar = arrange[key];
       let ar = arrange[key];
       ar = ar.map(a => {
       ar = ar.map(a => {
-        const rb = rt.batchnum.find(f => f.batchid === a.batchid);
+        const rb = rt.batchnum.find(f => f._id === a.batchid);
         if (rb) {
         if (rb) {
           const bh = _.head(rb.class);
           const bh = _.head(rb.class);
           const { type } = bh;
           const { type } = bh;