Fixed: Download client name in history details

Closes #1413
pull/2126/head
Qstick 2 years ago
parent 4034250a33
commit 4d3e83ec15

@ -69,6 +69,7 @@ function HistoryDetails(props) {
customFormatScore, customFormatScore,
nzbInfoUrl, nzbInfoUrl,
downloadClient, downloadClient,
downloadClientName,
downloadId, downloadId,
age, age,
ageHours, ageHours,
@ -76,6 +77,8 @@ function HistoryDetails(props) {
publishedDate publishedDate
} = data; } = data;
const downloadClientNameInfo = downloadClientName ?? downloadClient;
return ( return (
<DescriptionList> <DescriptionList>
<DescriptionListItem <DescriptionListItem
@ -125,11 +128,12 @@ function HistoryDetails(props) {
} }
{ {
!!downloadClient && downloadClientNameInfo ?
<DescriptionListItem <DescriptionListItem
title={translate('DownloadClient')} title={translate('DownloadClient')}
data={downloadClient} data={downloadClientNameInfo}
/> /> :
null
} }
{ {

Loading…
Cancel
Save