mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-15 09:33:52 -07:00
Fixed: Last UI reference to nameSlug, remove from model
This commit is contained in:
parent
afc4aeb25f
commit
b0070e0229
17 changed files with 6 additions and 279 deletions
|
@ -66,7 +66,6 @@ class AddNewArtistSearchResult extends Component {
|
|||
const {
|
||||
foreignArtistId,
|
||||
artistName,
|
||||
nameSlug,
|
||||
year,
|
||||
disambiguation,
|
||||
artistType,
|
||||
|
@ -79,7 +78,7 @@ class AddNewArtistSearchResult extends Component {
|
|||
isSmallScreen
|
||||
} = this.props;
|
||||
|
||||
const linkProps = isExistingArtist ? { to: `/artist/${nameSlug}` } : { onPress: this.onPress };
|
||||
const linkProps = isExistingArtist ? { to: `/artist/${foreignArtistId}` } : { onPress: this.onPress };
|
||||
let albums = '1 Album';
|
||||
|
||||
if (albumCount > 1) {
|
||||
|
@ -193,7 +192,6 @@ class AddNewArtistSearchResult extends Component {
|
|||
AddNewArtistSearchResult.propTypes = {
|
||||
foreignArtistId: PropTypes.string.isRequired,
|
||||
artistName: PropTypes.string.isRequired,
|
||||
nameSlug: PropTypes.string.isRequired,
|
||||
year: PropTypes.number,
|
||||
disambiguation: PropTypes.string,
|
||||
artistType: PropTypes.string,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue