From 0be8940580c4a4a4e098b649d198160f9b60420c Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Thu, 23 Oct 2025 08:43:17 +0000
Subject: (임수민) 데이터룸 텍스트 파일 타입 제거
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 components/file-manager/FileManager.tsx | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

(limited to 'components/file-manager/FileManager.tsx')

diff --git a/components/file-manager/FileManager.tsx b/components/file-manager/FileManager.tsx
index 11f58980..b0626eaf 100644
--- a/components/file-manager/FileManager.tsx
+++ b/components/file-manager/FileManager.tsx
@@ -851,16 +851,7 @@ export function FileManager({ projectId }: FileManagerProps) {
 
   // View file with PDFTron
   const viewFile = async (file: FileItem) => {
-    try {
-      const mimeType = file.mimeType || '';
-      const fileName = file.name.toLowerCase();
-
-      if (mimeType.startsWith('text/') ||
-        mimeType.endsWith('.txt')) {
-          window.open(`/api/files/${file.filePath}`, `_blank`);
-          return;
-        }
-      
+    try {      
       setViewerFileUrl(file.filePath || '');
       setSelectedFile(file);
       setViewerDialogOpen(true);
-- 
cgit v1.2.3

