Don't refresh artistInfo when setting artist's love/rating

This commit is contained in:
Deluan 2023-01-14 10:41:36 -05:00
parent 1d6b04e3ad
commit 12dd219e16
2 changed files with 5 additions and 4 deletions

View File

@ -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 (

View File

@ -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"
/>
)}