lrf402788946 4 years ago
parent
commit
483d3c7e4b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/bedroom.js

+ 1 - 1
app/service/bedroom.js

@@ -205,7 +205,7 @@ class BedroomService extends CrudService {
     }
     const havepersonList = [];
     for (const key of keys) {
-      if (key === undefined || key === 'undefined') continue;
+      if (key === undefined || key === 'undefined' || key === null || key === 'null') continue;
       // 取出分组后,以寝室id为key的学生列表
       const list = stuBedIdGroup[key];
       // 找到寝室obj