From 1b7c0af22e414fd05d7cc22ad8142de4c132c69c Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 28 Jun 2026 12:36:54 -0700 Subject: [PATCH] Get rid of absurd alert --- .../ocr-template-editor/ocr-template-editor.component.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.ts b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.ts index ed8fb3b1a..126727863 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.ts +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.ts @@ -966,7 +966,10 @@ export class OcrTemplateEditorComponent implements OnInit, OnDestroy { }) }, error: (err) => { - alert(err.error?.error || 'Failed to create custom field') + this.toastService.showError( + $localize`Failed to create custom field.`, + err + ) }, }) }