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

This commit is contained in:
Elian Doran
2026-04-02 10:02:06 +03:00
parent 64318c92e7
commit 8d255d1b89

View File

@@ -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);