Fixed: Album API query by foreignId only returns requested album

Setting the new 'includeAllArtistAlbums' will give the existing
behaviour of returning all albums for that artist
This commit is contained in:
ta264 2019-04-11 07:38:05 +01:00
commit 7b288bfcd3
2 changed files with 16 additions and 3 deletions

View file

@ -55,7 +55,10 @@ class AlbumDetailsPageConnector extends Component {
populate = () => {
const foreignAlbumId = this.props.foreignAlbumId;
this.setState({ hasMounted: true });
this.props.fetchAlbums({ foreignAlbumId });
this.props.fetchAlbums({
foreignAlbumId,
includeAllArtistAlbums: true
});
}
unpopulate = () => {