fix: update file type casting in PreviewDocumentPicker

pull/12097/head
AkaraChen 1 year ago
parent 49a48910cd
commit 4f6bc54280

@ -993,7 +993,7 @@ const StepTwo = ({
>
<div className='flex items-center gap-2'>
<PreviewDocumentPicker
files={files.map(file => ({ name: file.name!, id: file.id!, extension: 'pdf' }))}
files={files as Array<Required<CustomFile>>}
onChange={(selected) => {
currentEstimateMutation.reset()
setPreviewFile(selected)

Loading…
Cancel
Save