From 608fc29086dd56570d76c8f8e248b2fd1af2b668 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 8 Mar 2025 13:12:12 -0800 Subject: [PATCH] Fixed: Unknown series slug redirecting back to home instad of error screen --- .../src/AddSeries/ImportSeries/Import/ImportSeriesRow.tsx | 5 ----- frontend/src/Series/Details/SeriesDetailsPage.tsx | 6 +++++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/frontend/src/AddSeries/ImportSeries/Import/ImportSeriesRow.tsx b/frontend/src/AddSeries/ImportSeries/Import/ImportSeriesRow.tsx index 508d5a145..5e6680001 100644 --- a/frontend/src/AddSeries/ImportSeries/Import/ImportSeriesRow.tsx +++ b/frontend/src/AddSeries/ImportSeries/Import/ImportSeriesRow.tsx @@ -75,11 +75,6 @@ function ImportSeriesRow({ id }: ImportSeriesRowProps) { [selectDispatch] ); - console.info( - '\x1b[36m[MarkTest] is selected\x1b[0m', - selectState.selectedState[id] - ); - return ( <> { - if (seriesIndex === -1 && previousIndex !== -1) { + if ( + seriesIndex === -1 && + previousIndex !== -1 && + previousIndex !== undefined + ) { history.push(`${window.Sonarr.urlBase}/`); } }, [seriesIndex, previousIndex, history]);