MaiXinRong 2 年之前
父节点
当前提交
514d3b22b0
共有 1 个文件被更改,包括 1 次插入1 次删除
  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) {