Skip to content

Commit 9614fc7

Browse files
committed
Merge branch 'master' of github.com:nukeop/nuclear
2 parents f236611 + 783b98b commit 9614fc7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/app/app/actions/search.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -285,11 +285,11 @@ export const artistInfoSearchByName = (artistName: string, history: History) =>
285285
const selectedProvider = getSelectedMetaProvider(getState);
286286
const { settings } = getState();
287287
try {
288-
_.invoke(history, 'push', '/artist/loading');
288+
history.push('/artist/loading');
289289
dispatch(SearchActions.artistInfoStart('loading'));
290290
const artistDetails = await selectedProvider.fetchArtistDetailsByName(artistName);
291291
dispatch(SearchActions.artistInfoSuccess(artistDetails.id, artistDetails));
292-
_.invoke(history, 'push', `/artist/${artistDetails.id}`);
292+
history.replace(`/artist/${artistDetails.id}`);
293293
} catch (e) {
294294
logger.error(e);
295295
dispatch(error(

0 commit comments

Comments
 (0)