From eeee40f16665b8d89972dc6bf0ea909aa36766c3 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Mon, 22 Apr 2024 14:08:20 -0600 Subject: [PATCH] conditionally render from --- src/components/ParentNavigationSubtitle.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/ParentNavigationSubtitle.tsx b/src/components/ParentNavigationSubtitle.tsx index cbc9e1352f21..f793b4f8a60f 100644 --- a/src/components/ParentNavigationSubtitle.tsx +++ b/src/components/ParentNavigationSubtitle.tsx @@ -50,8 +50,12 @@ function ParentNavigationSubtitle({parentNavigationSubtitleData, parentReportAct style={[styles.optionAlternateText]} numberOfLines={1} > - {`${translate('threads.from')} `} - {reportName} + {Boolean(reportName) && ( + <> + {`${translate('threads.from')} `} + {reportName} + + )} {Boolean(workspaceName) && {` ${translate('threads.in')} ${workspaceName}`}}