From 6122a217d9fca96e501d9349c0242cb5b05a03ab Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Tue, 20 Sep 2022 14:56:50 +0800 Subject: [PATCH] =?UTF-8?q?pepProjectRes=20=E4=BF=9D=E6=8A=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/project/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/app/lib/controllers/project/index.js b/api/app/lib/controllers/project/index.js index 571bb47..5fdcd08 100644 --- a/api/app/lib/controllers/project/index.js +++ b/api/app/lib/controllers/project/index.js @@ -86,7 +86,7 @@ async function pomsProject (ctx) { for (let p of proRes.rows) { - const corPro = pepProjectRes.find(pp => pp.id == p.pepProjectId) + const corPro = pepProjectRes.find(pp => pp.id == p.pepProjectId) || {} p.dataValues.pepProjectName = corPro.project_name p.dataValues.pepProjectIsDelete = corPro.isdelete p.dataValues.constructionStatusId = corPro.construction_status_id