mirror of
https://github.com/zadam/trilium.git
synced 2026-06-26 19:21:42 +02:00
feat(ocr): make "process OCR" always reprocess
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user