FIX: Wenn kein Name angegeben ist, wird nun auch nichts angezeigt, anstelle von null

This commit is contained in:
Matthias Lotz 2025-11-01 11:43:17 +01:00
parent aec9db2a76
commit 04dca26d00
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@
/* Page-specific styles for ModerationPage */
.moderation-page { font-family: roboto; max-width: 1200px; margin: 0 auto; padding: 20px; }
.moderation-content h1 { font-family: roboto; text-align:center; color:#333; margin-bottom:30px; }
.moderation-content h1 { font-family: roboto; text-align:left; color:#333; margin-bottom:30px; }
.moderation-loading, .moderation-error { text-align:center; padding:50px; font-size:18px; }
.moderation-error { color:#dc3545; }

View File

@ -45,7 +45,8 @@ const ImageGalleryCard = ({
previewUrl = getGroupPreviewSrc(group, true);
title = group.title;
subtitle = `${group.year}${group.name}`;
// Only show name if it exists and is not empty/null/undefined
subtitle = (group.name && group.name !== 'null') ? `${group.year}${group.name}` : `${group.year}`;
description = group.description;
uploadDate = group.uploadDate;
imageCount = group.imageCount;