Fixed: Use download client name for history column

(cherry picked from commit 1df0ba9e5aef2d2745a45c546c869837ac8e68db)
pull/10622/head
Mark McDowall 2 weeks ago committed by Bogdan
parent f23c2dbaba
commit def6950db4

@ -154,9 +154,14 @@ function HistoryRow(props: HistoryRowProps) {
} }
if (name === 'downloadClient') { if (name === 'downloadClient') {
const downloadClientName =
'downloadClientName' in data ? data.downloadClientName : null;
const downloadClient =
'downloadClient' in data ? data.downloadClient : null;
return ( return (
<TableRowCell key={name} className={styles.downloadClient}> <TableRowCell key={name} className={styles.downloadClient}>
{'downloadClient' in data ? data.downloadClient : ''} {downloadClientName ?? downloadClient ?? ''}
</TableRowCell> </TableRowCell>
); );
} }

@ -39,6 +39,8 @@ export interface DownloadFailedHistory {
export interface DownloadFolderImportedHistory { export interface DownloadFolderImportedHistory {
customFormatScore?: string; customFormatScore?: string;
downloadClient: string;
downloadClientName: string;
droppedPath: string; droppedPath: string;
importedPath: string; importedPath: string;
} }

Loading…
Cancel
Save