[as] chore: useAplnRows 수정

This commit is contained in:
2026-09-17 17:04:31 +09:00
parent 086d5a18e8
commit 43bc7db7d5
2 changed files with 3 additions and 2 deletions
@@ -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: "",
@@ -68,6 +68,7 @@ function ElaprAplnGrid({ elaprTmpltId }: ElaprAplnGridProps) {
markDeleted,
reorderRows,
} = useAplnRows({
seedKey: elaprTmpltId,
elaprTmpltId,
serverRows: aplnQuery.data?.content,
});