Skip to content

Build your personal knowledge base with Trilium Notes

fix(print): skip files from being printed

Elian Doran84c40eb2332e
diff --git a/apps/client/src/widgets/collections/legacy/ListPrintView.tsx b/apps/client/src/widgets/collections/legacy/ListPrintView.tsx
index 8cde17687a..b6d642d1b4 100644
--- a/apps/client/src/widgets/collections/legacy/ListPrintView.tsx
+++ b/apps/client/src/widgets/collections/legacy/ListPrintView.tsx
@@ -86,6 +86,10 @@ function isNotePrintable(note: FNote) {
return false;
}
+ if (note.type === "file") {
+ return false;
+ }
+
return true;
}