diff --git a/static/app.js b/static/app.js index 7860195..672ab18 100644 --- a/static/app.js +++ b/static/app.js @@ -221,7 +221,7 @@ $(document).ready(function() { // 환자의 처방 내역 가져오기 $.get(`/api/patients/${patientId}/compounds`, function(compoundsResponse) { if (compoundsResponse.success) { - const compounds = compoundsResponse.data; + const compounds = compoundsResponse.compounds || []; // 통계 계산 const totalCompounds = compounds.length;