From 7dd2b9fc1856306652f311d19697d9880955bfab Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Fri, 22 Aug 2025 02:12:15 +0000
Subject: (최겸) 공지사항, 인포메이션 기능 수정
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 lib/information/table/update-information-dialog.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'lib/information/table/update-information-dialog.tsx')

diff --git a/lib/information/table/update-information-dialog.tsx b/lib/information/table/update-information-dialog.tsx
index a02b6eb1..370eb763 100644
--- a/lib/information/table/update-information-dialog.tsx
+++ b/lib/information/table/update-information-dialog.tsx
@@ -44,7 +44,7 @@ import {
   downloadInformationAttachment 
 } from "@/lib/information/service"
 import type { PageInformation, InformationAttachment } from "@/db/schema/information"
-import { downloadFile } from "@/lib/file-download"
+// downloadFile은 동적으로 import
 import prettyBytes from "pretty-bytes"
 
 const MAX_FILE_SIZE = 50 * 1024 * 1024 // 50MB
@@ -126,6 +126,8 @@ export function UpdateInformationDialog({
     try {
       const result = await downloadInformationAttachment(attachment.id)
       if (result.success && result.data) {
+        // 동적으로 downloadFile 함수 import
+        const { downloadFile } = await import('@/lib/file-download')
         await downloadFile(result.data.filePath, result.data.fileName)
         toast.success("파일 다운로드가 시작되었습니다.")
       } else {
-- 
cgit v1.2.3

