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)