Skip to content

[Bug] 승인/거절 직후 행의 코멘트·처리일시가 화면에서 사라짐 — 응답에 없는 필드 참조 #33

Description

@dongmin0204

현상

src/pages/admin/RequestManagementPage.jsx:121-165가 승인/거절 응답에서 .comment .updatedAt .approvedAt .ubuntuGids를 추출해 행을 갱신하는데, BE 응답(SuccessResponse, admin_be #304)에는 해당 필드가 없음 → 방금 입력한 관리자 코멘트·일시가 undefined로 덮여 화면에서 사라짐(새로고침하면 복원).

참고: 구버전 빈 200 시절엔 이 코드가 TypeError로 "성공인데 에러 alert"를 냈을 것으로 추정 — #304 배포 후 크래시는 사라졌지만 파싱은 여전히 어긋난 상태.

수정

서버 응답값 대신 로컬 입력값(comment)과 현재 시각으로 행을 갱신하거나, 처리 후 목록 refetch.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions