From 13545e8972b5d5985773e6ccd4d6b2101479972a Mon Sep 17 00:00:00 2001 From: tonoyan Date: Mon, 13 Apr 2026 15:22:23 +0300 Subject: [PATCH] fix nan --- .../category/subcategories.component.html | 44 ++++++++++++------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/src/app/pages/category/subcategories.component.html b/src/app/pages/category/subcategories.component.html index 0800d93..4d5d632 100644 --- a/src/app/pages/category/subcategories.component.html +++ b/src/app/pages/category/subcategories.component.html @@ -24,25 +24,35 @@ @for (sub of nestedSubcategories(); track trackBySubId($index, sub)) { @if (getSubcategoryRouteId(sub) !== null) { - } else { -
- } -
- @if (sub.img) { - - } @else { -
{{ sub.name.charAt(0) }}
- } -
-
-

{{ sub.name }}

- @if (sub.itemCount) { - {{ sub.itemCount }} - } -
- @if (getSubcategoryRouteId(sub) !== null) { +
+ @if (sub.img) { + + } @else { +
{{ sub.name.charAt(0) }}
+ } +
+
+

{{ sub.name }}

+ @if (sub.itemCount) { + {{ sub.itemCount }} + } +
} else { +
+
+ @if (sub.img) { + + } @else { +
{{ sub.name.charAt(0) }}
+ } +
+
+

{{ sub.name }}

+ @if (sub.itemCount) { + {{ sub.itemCount }} + } +
} }