Fixed: Display last/next monitored albums for artists
This commit is contained in:
@@ -10,6 +10,7 @@ export interface Statistics {
|
||||
}
|
||||
|
||||
interface Album extends ModelBase {
|
||||
artistId: number;
|
||||
artist: Artist;
|
||||
foreignAlbumId: string;
|
||||
title: string;
|
||||
|
||||
@@ -4,10 +4,11 @@ import Link from 'Components/Link/Link';
|
||||
|
||||
function AlbumTitleLink({ foreignAlbumId, title, disambiguation }) {
|
||||
const link = `/album/${foreignAlbumId}`;
|
||||
const albumTitle = `${title}${disambiguation ? ` (${disambiguation})` : ''}`;
|
||||
|
||||
return (
|
||||
<Link to={link}>
|
||||
{title}{disambiguation ? ` (${disambiguation})` : ''}
|
||||
<Link to={link} title={albumTitle}>
|
||||
{albumTitle}
|
||||
</Link>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@ export interface Ratings {
|
||||
|
||||
interface Artist extends ModelBase {
|
||||
added: string;
|
||||
artistMetadataId: string;
|
||||
foreignArtistId: string;
|
||||
cleanName: string;
|
||||
ended: boolean;
|
||||
|
||||
@@ -11,7 +11,7 @@ function createArtistAlbumsSelector(artistId: number) {
|
||||
const { isFetching, isPopulated, error, items } = albums;
|
||||
|
||||
const filteredAlbums = items.filter(
|
||||
(album) => album.artist.artistMetadataId === artist.artistMetadataId
|
||||
(album) => album.artistId === artist.id
|
||||
);
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user