diff --git a/ui/src/album/AlbumActions.js b/ui/src/album/AlbumActions.js index 02ee743a2..6084a6232 100644 --- a/ui/src/album/AlbumActions.js +++ b/ui/src/album/AlbumActions.js @@ -37,7 +37,6 @@ const AlbumActions = ({ ids, data, record, - resource, permanentFilter, ...rest }) => { @@ -68,8 +67,8 @@ const AlbumActions = ({ }, [dispatch, ids]) const handleShare = React.useCallback(() => { - dispatch(openShareMenu([record.id], resource, record.name)) - }, [dispatch, record, resource]) + dispatch(openShareMenu([record.id], 'album', record.name)) + }, [dispatch, record]) const handleDownload = React.useCallback(() => { dispatch(openDownloadMenu(record, DOWNLOAD_MENU_ALBUM)) diff --git a/ui/src/playlist/PlaylistActions.js b/ui/src/playlist/PlaylistActions.js index d9f2b3fc3..8bf3bcdce 100644 --- a/ui/src/playlist/PlaylistActions.js +++ b/ui/src/playlist/PlaylistActions.js @@ -35,14 +35,7 @@ const useStyles = makeStyles({ toolbar: { display: 'flex', justifyContent: 'space-between', width: '100%' }, }) -const PlaylistActions = ({ - className, - ids, - data, - record, - resource, - ...rest -}) => { +const PlaylistActions = ({ className, ids, data, record, ...rest }) => { const dispatch = useDispatch() const translate = useTranslate() const classes = useStyles() @@ -94,8 +87,8 @@ const PlaylistActions = ({ }, [getAllSongsAndDispatch]) const handleShare = React.useCallback(() => { - dispatch(openShareMenu([record.id], resource, record.name)) - }, [dispatch, record, resource]) + dispatch(openShareMenu([record.id], 'playlist', record.name)) + }, [dispatch, record]) const handleDownload = React.useCallback(() => { dispatch(openDownloadMenu(record, DOWNLOAD_MENU_PLAY))