Render JSON files as text files
This commit is contained in:
@@ -60,6 +60,7 @@ export const file_type = file => {
|
|||||||
) {
|
) {
|
||||||
return "pdf"
|
return "pdf"
|
||||||
} else if (
|
} else if (
|
||||||
|
file.mime_type === "application/json" ||
|
||||||
file.mime_type.startsWith("text")
|
file.mime_type.startsWith("text")
|
||||||
) {
|
) {
|
||||||
return "text"
|
return "text"
|
||||||
|
@@ -47,6 +47,7 @@ export const fs_node_type = node => {
|
|||||||
) {
|
) {
|
||||||
return "pdf"
|
return "pdf"
|
||||||
} else if (
|
} else if (
|
||||||
|
node.file_type === "application/json" ||
|
||||||
node.file_type.startsWith("text")
|
node.file_type.startsWith("text")
|
||||||
) {
|
) {
|
||||||
return "text"
|
return "text"
|
||||||
|
Reference in New Issue
Block a user