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