MaiXinRong 2 năm trước cách đây
mục cha
commit
514d3b22b0
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/middleware/stage_check.js

+ 1 - 1
app/middleware/stage_check.js

@@ -143,7 +143,7 @@ module.exports = options => {
                     if (sameAudit) {
                         for (const audit of auditList) {
                             const shenpi = shenpiList.find(x => { return x.audit_id === audit.aid; });
-                            if (shenpi.audit_order !== audit.audit_order) sameAudit = false;
+                            if (!shenpi || shenpi.audit_order !== audit.audit_order) sameAudit = false;
                         }
                     }
                     if (!sameAudit) {