From 30dd64c33063c64f68b7d70ac21b1388f3b58238 Mon Sep 17 00:00:00 2001 From: Bernhard Owen Josephus Date: Fri, 7 Jun 2024 11:17:18 +0800 Subject: [PATCH] fallback to report policyID --- src/pages/ReportAvatar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/ReportAvatar.tsx b/src/pages/ReportAvatar.tsx index 6b4c2e35c19f..766285dec0d8 100644 --- a/src/pages/ReportAvatar.tsx +++ b/src/pages/ReportAvatar.tsx @@ -36,7 +36,7 @@ function ReportAvatar({report = {} as Report, policies, isLoadingApp = true}: Re isWorkspaceAvatar maybeIcon // In the case of default workspace avatar, originalFileName prop takes policyID as value to get the color of the avatar - originalFileName={policy?.originalFileName ?? policy?.id} + originalFileName={policy?.originalFileName ?? policy?.id ?? report?.policyID} shouldShowNotFoundPage={!report?.reportID && !isLoadingApp} isLoading={(!report?.reportID || !policy?.id) && !!isLoadingApp} />