fix: 환자 처방 내역 조회 API 응답 형식 수정
- API 응답에서 'data' 대신 'compounds' 사용하도록 수정 - 에러 방지를 위해 기본값 빈 배열 설정 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
45672a125f
commit
83f9f10f3d
@ -221,7 +221,7 @@ $(document).ready(function() {
|
|||||||
// 환자의 처방 내역 가져오기
|
// 환자의 처방 내역 가져오기
|
||||||
$.get(`/api/patients/${patientId}/compounds`, function(compoundsResponse) {
|
$.get(`/api/patients/${patientId}/compounds`, function(compoundsResponse) {
|
||||||
if (compoundsResponse.success) {
|
if (compoundsResponse.success) {
|
||||||
const compounds = compoundsResponse.data;
|
const compounds = compoundsResponse.compounds || [];
|
||||||
|
|
||||||
// 통계 계산
|
// 통계 계산
|
||||||
const totalCompounds = compounds.length;
|
const totalCompounds = compounds.length;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user