From 8d255d1b8942d573a28c3b60a652ff229ae0f256 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Thu, 2 Apr 2026 10:02:06 +0300 Subject: [PATCH] feat(ocr): make "process OCR" always reprocess --- .../src/widgets/type_widgets/ReadOnlyTextRepresentation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);