Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -150,7 +150,8 @@ exports.getPatientDetail = async ctx => { | ... | @@ -150,7 +150,8 @@ exports.getPatientDetail = async ctx => { |
150 | bottleId : bottle.bottleId, | 150 | bottleId : bottle.bottleId, |
151 | useYn : 'Y', | 151 | useYn : 'Y', |
152 | }); | 152 | }); |
153 | - reqUserBmList.push(bm); | 153 | + |
154 | + if(bm) reqUserBmList.push(bm); | ||
154 | })); | 155 | })); |
155 | 156 | ||
156 | const bottleList = await Promise.all(reqUserBmList.map(async bottleMedicine => { | 157 | const bottleList = await Promise.all(reqUserBmList.map(async bottleMedicine => { | ... | ... |
-
Please register or login to post a comment