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 d849c4236..bcba56396 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 @@ -330,7 +330,7 @@ export class OcrTemplateEditorComponent }) const id = this.route.snapshot.paramMap.get('id') - if (id && id !== 'new') { + if (id) { this.isNew = false this.templateService .get(parseInt(id))