[as] chore: useAplnRows 수정
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user