feat(book/table): display attachment JSON

This commit is contained in:
Elian Doran 2025-06-25 17:43:58 +03:00
parent ccb9b7e5fb
commit 9c137a1c48
No known key found for this signature in database

View File

@ -301,7 +301,7 @@ function getRenderingType(entity: FNote | FAttachment) {
if (type === "file" && mime === "application/pdf") {
type = "pdf";
} else if (type === "file" && mime && CODE_MIME_TYPES.has(mime)) {
} else if ((type === "file" || type === "viewConfig") && mime && CODE_MIME_TYPES.has(mime)) {
type = "code";
} else if (type === "file" && mime && mime.startsWith("audio/")) {
type = "audio";