From 3a7992b1c82fdf208198a97527538adb606be82c Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Tue, 11 Jun 2019 22:41:49 -0700 Subject: [PATCH] Small UI fixes Fixed: Season count popover styling Fixed: URL base of /series linking to the wrong path in some cases Fixed: Manual import showing error when a different series is selected Fixed: Error when deleting series from poster list --- frontend/src/Components/Link/Link.js | 2 +- .../InteractiveImport/Interactive/InteractiveImportRow.js | 5 +++-- frontend/src/Series/Details/SeriesDetailsSeason.js | 1 - .../Store/Selectors/createSeriesQualityProfileSelector.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/Components/Link/Link.js b/frontend/src/Components/Link/Link.js index 3a609c99c..7ccb01078 100644 --- a/frontend/src/Components/Link/Link.js +++ b/frontend/src/Components/Link/Link.js @@ -47,7 +47,7 @@ class Link extends Component { el = 'a'; linkProps.href = to; linkProps.target = target || '_self'; - } else if (to.startsWith(window.Sonarr.urlBase)) { + } else if (to.startsWith(`${window.Sonarr.urlBase}/`)) { el = RouterLink; linkProps.to = to; linkProps.target = target; diff --git a/frontend/src/InteractiveImport/Interactive/InteractiveImportRow.js b/frontend/src/InteractiveImport/Interactive/InteractiveImportRow.js index 59a8a7f3b..16a9f8d00 100644 --- a/frontend/src/InteractiveImport/Interactive/InteractiveImportRow.js +++ b/frontend/src/InteractiveImport/Interactive/InteractiveImportRow.js @@ -294,7 +294,7 @@ class InteractiveImportRow extends Component { { - !!rejections.length && + rejections && rejections.length ? } position={tooltipPositions.LEFT} - /> + /> : + null } diff --git a/frontend/src/Series/Details/SeriesDetailsSeason.js b/frontend/src/Series/Details/SeriesDetailsSeason.js index e6f6a93de..c00d89f4f 100644 --- a/frontend/src/Series/Details/SeriesDetailsSeason.js +++ b/frontend/src/Series/Details/SeriesDetailsSeason.js @@ -274,7 +274,6 @@ class SeriesDetailsSeason extends Component { /> } - kind={kinds.INVERSE} position={tooltipPositions.BOTTOM} /> diff --git a/frontend/src/Store/Selectors/createSeriesQualityProfileSelector.js b/frontend/src/Store/Selectors/createSeriesQualityProfileSelector.js index 4a04e63a3..9c093e6ee 100644 --- a/frontend/src/Store/Selectors/createSeriesQualityProfileSelector.js +++ b/frontend/src/Store/Selectors/createSeriesQualityProfileSelector.js @@ -5,7 +5,7 @@ function createSeriesQualityProfileSelector() { return createSelector( (state) => state.settings.qualityProfiles.items, createSeriesSelector(), - (qualityProfiles, series) => { + (qualityProfiles, series = {}) => { return qualityProfiles.find((profile) => { return profile.id === series.qualityProfileId; });