diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html index 788d911b9..e1231d4ef 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/ocr-template-editor.component.html @@ -282,7 +282,7 @@ @if (!pageLoaded()) {
- + Loading page...
diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/zone-geometry.ts b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/zone-geometry.ts index ac41812cf..94f224d48 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/zone-geometry.ts +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-template-editor/zone-geometry.ts @@ -63,7 +63,7 @@ export function getZonePage( ): number { const page = zone.page ?? 1 if (page === -1) return previewPageCount ?? previewPage + 1 - return page >= 1 ? page : 1 + return Math.max(page, 1) } export function isZoneOnPage( diff --git a/src-ui/src/app/components/manage/ocr-templates/ocr-templates.component.html b/src-ui/src/app/components/manage/ocr-templates/ocr-templates.component.html index 086493f47..222fd2167 100644 --- a/src-ui/src/app/components/manage/ocr-templates/ocr-templates.component.html +++ b/src-ui/src/app/components/manage/ocr-templates/ocr-templates.component.html @@ -23,7 +23,7 @@ @if (loading() && templates().length === 0) {
  • - + Loading...
  • }