From 1bdeb7ebcd3c83929d44257100d58e0fc2d17420 Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Tue, 20 Oct 2026 13:15:17 -0700
Subject: [PATCH] Mas sonar
---
.../ocr-template-editor/ocr-template-editor.component.html | 2 +-
.../manage/ocr-templates/ocr-template-editor/zone-geometry.ts | 2 +-
.../manage/ocr-templates/ocr-templates.component.html | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
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()) {
-
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...
}