Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
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.tsxindex 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);