MaiXinRong 2 years ago
parent
commit
514d3b22b0
1 changed files with 1 additions and 1 deletions
  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) {