don't make artist clickable if no id

This commit is contained in:
Kendall Garner 2024-09-04 20:01:45 -07:00
parent e6bd8deb0c
commit 4a111d9cf2
No known key found for this signature in database
GPG Key ID: 18D2767419676C87

View File

@ -244,8 +244,8 @@ export const LeftControls = () => {
<React.Fragment key={`bar-${artist.id}`}> <React.Fragment key={`bar-${artist.id}`}>
{index > 0 && <Separator />} {index > 0 && <Separator />}
<Text <Text
$link $link={artist.id !== ''}
component={Link} component={artist.id ? Link : undefined}
overflow="hidden" overflow="hidden"
size="md" size="md"
to={ to={
@ -253,7 +253,7 @@ export const LeftControls = () => {
? generatePath(AppRoute.LIBRARY_ALBUM_ARTISTS_DETAIL, { ? generatePath(AppRoute.LIBRARY_ALBUM_ARTISTS_DETAIL, {
albumArtistId: artist.id, albumArtistId: artist.id,
}) })
: '' : undefined
} }
weight={500} weight={500}
> >