Skip to content

Commit

Permalink
don't make artist clickable if no id
Browse files Browse the repository at this point in the history
  • Loading branch information
kgarner7 committed Sep 5, 2024
1 parent e6bd8de commit 4a111d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/renderer/features/player/components/left-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -244,16 +244,16 @@ 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={
artist.id
? generatePath(AppRoute.LIBRARY_ALBUM_ARTISTS_DETAIL, {
albumArtistId: artist.id,
})
: ''
: undefined
}
weight={500}
>
Expand Down

0 comments on commit 4a111d9

Please sign in to comment.