From 4f6bc542809223fc08b6fd58648e226f036c161f Mon Sep 17 00:00:00 2001 From: AkaraChen Date: Wed, 11 Dec 2024 18:05:05 +0800 Subject: [PATCH] fix: update file type casting in PreviewDocumentPicker --- web/app/components/datasets/create/step-two/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/datasets/create/step-two/index.tsx b/web/app/components/datasets/create/step-two/index.tsx index 01cf933f30..5a3d8536dc 100644 --- a/web/app/components/datasets/create/step-two/index.tsx +++ b/web/app/components/datasets/create/step-two/index.tsx @@ -993,7 +993,7 @@ const StepTwo = ({ >
({ name: file.name!, id: file.id!, extension: 'pdf' }))} + files={files as Array>} onChange={(selected) => { currentEstimateMutation.reset() setPreviewFile(selected)