From 854bae2873f1b3d09377862d82d269430ed4d78f Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Sat, 3 Oct 2026 07:57:59 +0330 Subject: [PATCH] people tags #387 --- .../GanjoorPage/PageTypes/_CatPagePartial.cshtml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_CatPagePartial.cshtml b/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_CatPagePartial.cshtml index 8ab758b7..79a3c0a2 100644 --- a/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_CatPagePartial.cshtml +++ b/GanjooRazor/Pages/Partials/GanjoorPage/PageTypes/_CatPagePartial.cshtml @@ -104,8 +104,11 @@
- @* Map *@ - @if (!Model.OfflineMode && Model.CategoryPoemGeoDateTags != null && Model.CategoryPoemGeoDateTags.Length > 0) + @* Map - only when at least one tag actually carries a Location; person tags (added alongside + geo/date tags on the same CategoryPoemGeoDateTags array) never have one, so a category whose + tags are all person tags would otherwise still pass a plain "array not empty" check below and + render an empty map with nothing to pin. *@ + @if (!Model.OfflineMode && Model.CategoryPoemGeoDateTags != null && Model.CategoryPoemGeoDateTags.Any(t => t.Location != null)) {
} @@ -146,7 +149,7 @@ } -@if (!Model.OfflineMode && Model.CategoryPoemGeoDateTags != null && Model.CategoryPoemGeoDateTags.Length > 0) +@if (!Model.OfflineMode && Model.CategoryPoemGeoDateTags != null && Model.CategoryPoemGeoDateTags.Any(t => t.Location != null)) {