From 1df0ba9e5aef2d2745a45c546c869837ac8e68db 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 --- 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 42af2833b..d1ba279dc 100644 --- a/frontend/src/Activity/History/HistoryRow.tsx +++ b/frontend/src/Activity/History/HistoryRow.tsx @@ -195,9 +195,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 d20895f37..bebde55c0 100644 --- a/frontend/src/typings/History.ts +++ b/frontend/src/typings/History.ts @@ -40,6 +40,8 @@ export interface DownloadFailedHistory { export interface DownloadFolderImportedHistory { customFormatScore?: string; + downloadClient: string; + downloadClientName: string; droppedPath: string; importedPath: string; }