From fa2859dd5274b48d108cb90348cf6e5fc9939e4f Mon Sep 17 00:00:00 2001 From: Nicholai Date: Mon, 20 Oct 2025 18:57:34 -0600 Subject: [PATCH] fix(flash): fetch flash items with artist.id after artist loads to avoid slug/id mismatch --- components/artist-portfolio.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/artist-portfolio.tsx b/components/artist-portfolio.tsx index e6e67ffc2..481fe954a 100644 --- a/components/artist-portfolio.tsx +++ b/components/artist-portfolio.tsx @@ -30,7 +30,7 @@ export function ArtistPortfolio({ artistId }: ArtistPortfolioProps) { // Fetch artist data from API const { data: artist, isLoading, error } = useArtist(artistId) - const { data: flashItems = [] } = useFlash(artistId) + const { data: flashItems = [] } = useFlash(artist?.id) // keep a reference to the last focused thumbnail so we can return focus on modal close const lastFocusedRef = useRef(null)