diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-06-25 08:44:24 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-06-25 08:44:24 +0000 |
| commit | 2a60945bf9eb50cd5cb28d7d3782290f92879361 (patch) | |
| tree | cacbd593430cedd27f6e8041c8344901ba98076e /lib/techsales-rfq/table/tech-sales-rfq-attachments-sheet.tsx | |
| parent | b30f5f1ef4b1167d955ac5e9f4c4a4c393b58436 (diff) | |
(최겸) 기술영업 rfq 첨부 오류 수정 0625
Diffstat (limited to 'lib/techsales-rfq/table/tech-sales-rfq-attachments-sheet.tsx')
| -rw-r--r-- | lib/techsales-rfq/table/tech-sales-rfq-attachments-sheet.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/techsales-rfq/table/tech-sales-rfq-attachments-sheet.tsx b/lib/techsales-rfq/table/tech-sales-rfq-attachments-sheet.tsx index 3b0fd38d..fa9be9e3 100644 --- a/lib/techsales-rfq/table/tech-sales-rfq-attachments-sheet.tsx +++ b/lib/techsales-rfq/table/tech-sales-rfq-attachments-sheet.tsx @@ -4,7 +4,7 @@ import * as React from "react" import { z } from "zod" import { useForm, useFieldArray } from "react-hook-form" import { zodResolver } from "@hookform/resolvers/zod" - +import { cn } from "@/lib/utils" import { Sheet, SheetContent, @@ -50,6 +50,7 @@ import { import prettyBytes from "pretty-bytes" import { formatDate } from "@/lib/utils" import { processTechSalesRfqAttachments } from "@/lib/techsales-rfq/service" +import { useSession } from "next-auth/react" const MAX_FILE_SIZE = 6e8 // 600MB @@ -129,6 +130,7 @@ export function TechSalesRfqAttachmentsSheet({ ...props }: TechSalesRfqAttachmentsSheetProps) { const [isPending, setIsPending] = React.useState(false) + const session = useSession() // 첨부파일 타입별 제목과 설명 설정 const attachmentConfig = React.useMemo(() => { @@ -274,7 +276,7 @@ export function TechSalesRfqAttachmentsSheet({ techSalesRfqId: rfq.id, newFiles, deleteAttachmentIds, - createdBy: 1, // TODO: 실제 사용자 ID로 변경 + createdBy: parseInt(session.data?.user.id || "0"), }) if (result.error) { |
