mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-06 16:55:49 +00:00
Fixed: Page header search box uses incorrect artist link
This commit is contained in:
@@ -78,7 +78,7 @@ class ArtistSearchInput extends Component {
|
||||
|
||||
goToArtist(artist) {
|
||||
this.setState({ value: '' });
|
||||
this.props.onGoToArtist(artist.nameSlug);
|
||||
this.props.onGoToArtist(artist.foreignArtistId);
|
||||
}
|
||||
|
||||
reset() {
|
||||
|
||||
@@ -18,8 +18,8 @@ function createMapStateToProps() {
|
||||
|
||||
function createMapDispatchToProps(dispatch, props) {
|
||||
return {
|
||||
onGoToArtist(nameSlug) {
|
||||
dispatch(push(`${window.Sonarr.urlBase}/artist/${nameSlug}`));
|
||||
onGoToArtist(foreignArtistId) {
|
||||
dispatch(push(`${window.Sonarr.urlBase}/artist/${foreignArtistId}`));
|
||||
},
|
||||
|
||||
onGoToAddNewArtist(query) {
|
||||
|
||||
Reference in New Issue
Block a user