From 56521723473e127e8d1b6d7c04bf4189b4b4f956 Mon Sep 17 00:00:00 2001 From: eirikhaugstulen Date: Wed, 15 Jan 2025 01:38:42 +0100 Subject: [PATCH] fix: show 'Profile' instead of 'False' during loading --- .../WidgetProfile/WidgetProfile.component.js | 12 ++++++++---- .../WidgetProfile/hooks/useTrackedEntityInstances.js | 4 ++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/core_modules/capture-core/components/WidgetProfile/WidgetProfile.component.js b/src/core_modules/capture-core/components/WidgetProfile/WidgetProfile.component.js index c94ed1cdb6..4379a7b768 100644 --- a/src/core_modules/capture-core/components/WidgetProfile/WidgetProfile.component.js +++ b/src/core_modules/capture-core/components/WidgetProfile/WidgetProfile.component.js @@ -148,10 +148,14 @@ const WidgetProfilePlain = ({ -
{i18n.t('{{trackedEntityTypeName}} profile', { - trackedEntityTypeName, - interpolation: { escapeValue: false }, - })}
+
+ {trackedEntityTypeName + ? i18n.t('{{trackedEntityTypeName}} profile', { + trackedEntityTypeName, + interpolation: { escapeValue: false }, + }) + : i18n.t('Profile')} +
{isEditable && (