Fixed: Download client name in history details

Closes #4801
This commit is contained in:
Mark McDowall 2021-12-17 17:13:13 -08:00
parent d5b91f81ef
commit 3f66eeba4d
1 changed files with 5 additions and 2 deletions

View File

@ -26,6 +26,7 @@ function HistoryDetails(props) {
preferredWordScore, preferredWordScore,
nzbInfoUrl, nzbInfoUrl,
downloadClient, downloadClient,
downloadClientName,
downloadId, downloadId,
age, age,
ageHours, ageHours,
@ -33,6 +34,8 @@ function HistoryDetails(props) {
publishedDate publishedDate
} = data; } = data;
const downloadClientNameInfo = downloadClientName ?? downloadClient;
return ( return (
<DescriptionList> <DescriptionList>
<DescriptionListItem <DescriptionListItem
@ -84,10 +87,10 @@ function HistoryDetails(props) {
} }
{ {
downloadClient ? downloadClientNameInfo ?
<DescriptionListItem <DescriptionListItem
title="Download Client" title="Download Client"
data={downloadClient} data={downloadClientNameInfo}
/> : /> :
null null
} }