From 9374461d974a0f32e9f1764adad4f0add1a0aef5 Mon Sep 17 00:00:00 2001 From: Qstick Date: Thu, 18 Jan 2018 21:09:34 -0500 Subject: [PATCH] Fixed: Page header search box uses incorrect artist link --- frontend/src/Components/Page/Header/ArtistSearchInput.js | 2 +- .../src/Components/Page/Header/ArtistSearchInputConnector.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/Components/Page/Header/ArtistSearchInput.js b/frontend/src/Components/Page/Header/ArtistSearchInput.js index c0fe5ab20..33d396571 100644 --- a/frontend/src/Components/Page/Header/ArtistSearchInput.js +++ b/frontend/src/Components/Page/Header/ArtistSearchInput.js @@ -78,7 +78,7 @@ class ArtistSearchInput extends Component { goToArtist(artist) { this.setState({ value: '' }); - this.props.onGoToArtist(artist.nameSlug); + this.props.onGoToArtist(artist.foreignArtistId); } reset() { diff --git a/frontend/src/Components/Page/Header/ArtistSearchInputConnector.js b/frontend/src/Components/Page/Header/ArtistSearchInputConnector.js index 3bf1a1678..f1c3cfeeb 100644 --- a/frontend/src/Components/Page/Header/ArtistSearchInputConnector.js +++ b/frontend/src/Components/Page/Header/ArtistSearchInputConnector.js @@ -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) {