From 182634f85290b6be62de35f63a457dc6d4a9264c Mon Sep 17 00:00:00 2001 From: DDD1542 Date: Fri, 6 Mar 2026 03:40:54 +0900 Subject: [PATCH] [agent-pipeline] pipe-20260305181927-h4x5 round-3 --- frontend/app/(main)/admin/approvalBox/page.tsx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/frontend/app/(main)/admin/approvalBox/page.tsx b/frontend/app/(main)/admin/approvalBox/page.tsx index c0224239..f0cd1438 100644 --- a/frontend/app/(main)/admin/approvalBox/page.tsx +++ b/frontend/app/(main)/admin/approvalBox/page.tsx @@ -35,6 +35,7 @@ import { type ApprovalProxySetting, } from "@/lib/api/approval"; import { getUserList } from "@/lib/api/user"; +import { getCurrentUser } from "@/lib/api/client"; const STATUS_MAP: Record = { requested: { label: "요청", variant: "outline" }, @@ -72,8 +73,19 @@ function SentTab() { const fetchRequests = useCallback(async () => { setLoading(true); - const res = await getApprovalRequests({ my_approvals: false }); - if (res.success && res.data) setRequests(res.data); + try { + // 현재 로그인 사용자 ID를 기반으로 내가 올린 결재만 조회 + const userRes = await getCurrentUser(); + if (userRes.success && userRes.data) { + const res = await getApprovalRequests({ requester_id: userRes.data.userId }); + if (res.success && res.data) setRequests(res.data); + } else { + // 사용자 정보 없으면 빈 목록 표시 + setRequests([]); + } + } catch { + setRequests([]); + } setLoading(false); }, []);