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
This commit is contained in:
Mark McDowall 2019-06-11 22:41:49 -07:00
parent 5275aa72fb
commit 3a7992b1c8
4 changed files with 5 additions and 5 deletions

View File

@ -47,7 +47,7 @@ class Link extends Component {
el = 'a'; el = 'a';
linkProps.href = to; linkProps.href = to;
linkProps.target = target || '_self'; linkProps.target = target || '_self';
} else if (to.startsWith(window.Sonarr.urlBase)) { } else if (to.startsWith(`${window.Sonarr.urlBase}/`)) {
el = RouterLink; el = RouterLink;
linkProps.to = to; linkProps.to = to;
linkProps.target = target; linkProps.target = target;

View File

@ -294,7 +294,7 @@ class InteractiveImportRow extends Component {
<TableRowCell> <TableRowCell>
{ {
!!rejections.length && rejections && rejections.length ?
<Popover <Popover
anchor={ anchor={
<Icon <Icon
@ -317,7 +317,8 @@ class InteractiveImportRow extends Component {
</ul> </ul>
} }
position={tooltipPositions.LEFT} position={tooltipPositions.LEFT}
/> /> :
null
} }
</TableRowCell> </TableRowCell>

View File

@ -274,7 +274,6 @@ class SeriesDetailsSeason extends Component {
/> />
</div> </div>
} }
kind={kinds.INVERSE}
position={tooltipPositions.BOTTOM} position={tooltipPositions.BOTTOM}
/> />
</div> </div>

View File

@ -5,7 +5,7 @@ function createSeriesQualityProfileSelector() {
return createSelector( return createSelector(
(state) => state.settings.qualityProfiles.items, (state) => state.settings.qualityProfiles.items,
createSeriesSelector(), createSeriesSelector(),
(qualityProfiles, series) => { (qualityProfiles, series = {}) => {
return qualityProfiles.find((profile) => { return qualityProfiles.find((profile) => {
return profile.id === series.qualityProfileId; return profile.id === series.qualityProfileId;
}); });