mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Don't refresh artistInfo when setting artist's love/rating
This commit is contained in:
parent
1d6b04e3ad
commit
12dd219e16
2 changed files with 5 additions and 4 deletions
|
@ -34,7 +34,7 @@ const ArtistDetails = (props) => {
|
|||
.catch((e) => {
|
||||
console.error('error on artist page', e)
|
||||
})
|
||||
}, [record])
|
||||
}, [record.id])
|
||||
|
||||
const component = isDesktop ? DesktopArtistDetails : MobileArtistDetails
|
||||
return (
|
||||
|
|
|
@ -54,7 +54,8 @@ const useStyles = makeStyles(
|
|||
button: {
|
||||
marginLeft: '0.9em',
|
||||
},
|
||||
loveButton: {
|
||||
contextMenu: {
|
||||
marginLeft: theme.spacing(1.5),
|
||||
top: theme.spacing(-0.2),
|
||||
left: theme.spacing(0.5),
|
||||
},
|
||||
|
@ -103,11 +104,11 @@ const DesktopArtistDetails = ({ img, artistInfo, record, biography }) => {
|
|||
{title}
|
||||
{config.enableFavourites && (
|
||||
<ArtistContextMenu
|
||||
className={classes.loveButton}
|
||||
className={classes.contextMenu}
|
||||
record={record}
|
||||
resource={'artist'}
|
||||
size={'default'}
|
||||
aria-label="love"
|
||||
aria-label="artist context menu"
|
||||
color="primary"
|
||||
/>
|
||||
)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue