Skip to content

Commit e94af4c

Browse files
committed
fix documents pdf preview using invalid text base64
1 parent bdea1b5 commit e94af4c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

frontend/src/components/app/views/DocumentsView.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function statusLabel(status?: string | null): string {
6565
function docToAttachedFile(doc: UserDocument): AttachedFile {
6666
const ext = (doc.name || "").split(".").pop()?.toLowerCase() ?? ""
6767
const isTextViewable = [
68-
"txt", "md", "tex", "csv", "tsv", "rtf", "pdf",
68+
"txt", "md", "tex", "csv", "tsv", "rtf",
6969
...(SUPPORTED_EXTENSIONS.code as readonly string[]),
7070
].includes(ext)
7171

0 commit comments

Comments
 (0)