From def6950db4f9262e5e106ebfe3e4f0384fb1efb3 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 28 Oct 2024 16:04:48 -0700 Subject: [PATCH] Fixed: Use download client name for history column (cherry picked from commit 1df0ba9e5aef2d2745a45c546c869837ac8e68db) --- frontend/src/Activity/History/HistoryRow.tsx | 7 ++++++- frontend/src/typings/History.ts | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/Activity/History/HistoryRow.tsx b/frontend/src/Activity/History/HistoryRow.tsx index 45d0766b02..1f253cac9b 100644 --- a/frontend/src/Activity/History/HistoryRow.tsx +++ b/frontend/src/Activity/History/HistoryRow.tsx @@ -154,9 +154,14 @@ function HistoryRow(props: HistoryRowProps) { } if (name === 'downloadClient') { + const downloadClientName = + 'downloadClientName' in data ? data.downloadClientName : null; + const downloadClient = + 'downloadClient' in data ? data.downloadClient : null; + return ( - {'downloadClient' in data ? data.downloadClient : ''} + {downloadClientName ?? downloadClient ?? ''} ); } diff --git a/frontend/src/typings/History.ts b/frontend/src/typings/History.ts index de244bb1b5..a9ce30b831 100644 --- a/frontend/src/typings/History.ts +++ b/frontend/src/typings/History.ts @@ -39,6 +39,8 @@ export interface DownloadFailedHistory { export interface DownloadFolderImportedHistory { customFormatScore?: string; + downloadClient: string; + downloadClientName: string; droppedPath: string; importedPath: string; }