From 28fc1ee1a81b4567d837c76a845501ee7ac2068c Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sat, 11 Jul 2026 17:50:53 +0200 Subject: [PATCH] fix: artists search marks already-followed artists instead of a Follow button --- web/src/app/artists/artists-client.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/src/app/artists/artists-client.tsx b/web/src/app/artists/artists-client.tsx index c2edad5..d82b801 100644 --- a/web/src/app/artists/artists-client.tsx +++ b/web/src/app/artists/artists-client.tsx @@ -64,6 +64,8 @@ export function ArtistsClient() { refresh(); } + const followedMbids = new Set(artists.map((a) => a.mbid)); + return (
@@ -77,7 +79,11 @@ export function ArtistsClient() {
  • {h.name} {h.disambiguation ? ` (${h.disambiguation})` : ""}{" "} - + {followedMbids.has(h.mbid) ? ( + ยท following + ) : ( + + )}
  • ))}