From 83f9f10f3d48b79a703db581269d0f5c96dc16ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=8B=9C=EA=B3=A8=EC=95=BD=EC=82=AC?= Date: Sun, 15 Feb 2026 12:48:03 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=ED=99=98=EC=9E=90=20=EC=B2=98=EB=B0=A9?= =?UTF-8?q?=20=EB=82=B4=EC=97=AD=20=EC=A1=B0=ED=9A=8C=20API=20=EC=9D=91?= =?UTF-8?q?=EB=8B=B5=20=ED=98=95=EC=8B=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - API 응답에서 'data' 대신 'compounds' 사용하도록 수정 - 에러 방지를 위해 기본값 빈 배열 설정 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- static/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;