From 43bc7db7d5933add8927f7f47e623901c42e2819 Mon Sep 17 00:00:00 2001 From: bicochan Date: Thu, 17 Sep 2026 17:04:31 +0900 Subject: [PATCH] =?UTF-8?q?[as]=20chore:=20useAplnRows=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/as/src/entities/elapr/lib/use-apln-rows.ts | 4 ++-- .../src/pages/approval-line-management/ui/elapr-apln-grid.tsx | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/as/src/entities/elapr/lib/use-apln-rows.ts b/apps/as/src/entities/elapr/lib/use-apln-rows.ts index dfa731d07..576b722b4 100644 --- a/apps/as/src/entities/elapr/lib/use-apln-rows.ts +++ b/apps/as/src/entities/elapr/lib/use-apln-rows.ts @@ -24,7 +24,7 @@ function toRow(item: ElaprApln): ElaprAplnRow { interface UseAplnRowsOptions { seedKey: string | null; serverRows: ElaprApln[] | undefined; - elaprTmpltId?: string; + elaprTmpltId?: string | null; } export function createDraftRowKey(): string { @@ -58,7 +58,7 @@ export function useAplnRows({ seedKey, serverRows, elaprTmpltId = "" }: UseAplnR ...prev, { rowKey, - elaprTmpltId, + elaprTmpltId: elaprTmpltId ?? "", atrzSeComCd: "", aprvrUuid: "", aprvrNm: "", diff --git a/apps/as/src/pages/approval-line-management/ui/elapr-apln-grid.tsx b/apps/as/src/pages/approval-line-management/ui/elapr-apln-grid.tsx index e703551d5..5873803da 100644 --- a/apps/as/src/pages/approval-line-management/ui/elapr-apln-grid.tsx +++ b/apps/as/src/pages/approval-line-management/ui/elapr-apln-grid.tsx @@ -68,6 +68,7 @@ function ElaprAplnGrid({ elaprTmpltId }: ElaprAplnGridProps) { markDeleted, reorderRows, } = useAplnRows({ + seedKey: elaprTmpltId, elaprTmpltId, serverRows: aplnQuery.data?.content, });