From b7a2e91a62039fca187e6d4216580bc487fa1a79 Mon Sep 17 00:00:00 2001 From: Psychotoxical Date: Wed, 15 Apr 2026 18:32:47 +0200 Subject: [PATCH] fix(search): remove duplicate const total in AdvancedSearch PR #191 moved the declaration to the top of the component but left the original at line 139, causing a 'has already been declared' error. Co-Authored-By: Claude Sonnet 4.6 --- src/pages/AdvancedSearch.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/pages/AdvancedSearch.tsx b/src/pages/AdvancedSearch.tsx index d0189bfd..00003609 100644 --- a/src/pages/AdvancedSearch.tsx +++ b/src/pages/AdvancedSearch.tsx @@ -136,10 +136,6 @@ export default function AdvancedSearch() { runSearch({ query, genre, yearFrom, yearTo, resultType }); }; - const total = results - ? results.artists.length + results.albums.length + results.songs.length - : 0; - const typeOptions: { id: ResultType; label: string }[] = [ { id: 'all', label: t('search.advancedAll') }, { id: 'artists', label: t('search.artists') },