From 7011a24b468220ac89b41c331d9ae69844b215f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=B6rdle=20Bot?= Date: Mon, 24 Nov 2025 09:56:56 +0100 Subject: [PATCH] Fix: Add missing fetchSpecials() calls to update special song counts --- app/admin/page.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/admin/page.tsx b/app/admin/page.tsx index 432a91d..4d212a5 100644 --- a/app/admin/page.tsx +++ b/app/admin/page.tsx @@ -526,6 +526,7 @@ export default function AdminPage() { setIsUploading(false); fetchSongs(); fetchGenres(); + fetchSpecials(); // Update special counts // Auto-trigger categorization after uploads const successCount = results.filter(r => r.success).length; @@ -600,6 +601,7 @@ export default function AdminPage() { setUploadGenreIds([]); fetchSongs(); fetchGenres(); + fetchSpecials(); // Update special counts if song was assigned to specials setMessage(prev => prev + '\n✅ Genres assigned successfully!'); } else { alert('Failed to assign genres'); @@ -642,6 +644,7 @@ export default function AdminPage() { setEditingId(null); fetchSongs(); fetchGenres(); + fetchSpecials(); // Update special counts } else { alert('Failed to update song'); } @@ -661,6 +664,7 @@ export default function AdminPage() { if (res.ok) { fetchSongs(); fetchGenres(); + fetchSpecials(); // Update special counts } else { alert('Failed to delete song'); }