mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-03-05 13:20:20 -05:00
Fixed: Unknown series slug redirecting back to home instad of error screen
This commit is contained in:
@@ -75,11 +75,6 @@ function ImportSeriesRow({ id }: ImportSeriesRowProps) {
|
||||
[selectDispatch]
|
||||
);
|
||||
|
||||
console.info(
|
||||
'\x1b[36m[MarkTest] is selected\x1b[0m',
|
||||
selectState.selectedState[id]
|
||||
);
|
||||
|
||||
return (
|
||||
<>
|
||||
<VirtualTableSelectCell
|
||||
|
||||
@@ -19,7 +19,11 @@ function SeriesDetailsPage() {
|
||||
const previousIndex = usePrevious(seriesIndex);
|
||||
|
||||
useEffect(() => {
|
||||
if (seriesIndex === -1 && previousIndex !== -1) {
|
||||
if (
|
||||
seriesIndex === -1 &&
|
||||
previousIndex !== -1 &&
|
||||
previousIndex !== undefined
|
||||
) {
|
||||
history.push(`${window.Sonarr.urlBase}/`);
|
||||
}
|
||||
}, [seriesIndex, previousIndex, history]);
|
||||
|
||||
Reference in New Issue
Block a user