Skip to content

Build your personal knowledge base with Trilium Notes

feat(ocr): make "process OCR" always reprocess

Elian Doran8d255d1b8942
diff --git a/apps/client/src/widgets/type_widgets/ReadOnlyTextRepresentation.tsx b/apps/client/src/widgets/type_widgets/ReadOnlyTextRepresentation.tsx
index c67cc4dfd9..5ad2f83f88 100644
--- a/apps/client/src/widgets/type_widgets/ReadOnlyTextRepresentation.tsx
+++ b/apps/client/src/widgets/type_widgets/ReadOnlyTextRepresentation.tsx
@@ -47,7 +47,7 @@ export default function ReadOnlyTextRepresentation({ note }: TypeWidgetProps) {
async function processOCR() {
setProcessing(true);
try {
- const response = await server.post<{ success: boolean; message?: string }>(`ocr/process-note/${note.noteId}`);
+ const response = await server.post<{ success: boolean; message?: string }>(`ocr/process-note/${note.noteId}`, { forceReprocess: true });
if (response.success) {
toast.showMessage(t("ocr.processing_started"));
setTimeout(fetchText, 2000);