From 9d015fe3e686584c56ebb200f6cfb486339893d7 Mon Sep 17 00:00:00 2001 From: Stephen Hand Date: Fri, 16 Dec 2022 15:33:17 +0000 Subject: [PATCH] Fix issue where function to look up value translations for printing doesn't fall back to untranslated value --- .../src/components/case/casePrint/presentValuesFromStrings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin-hrm-form/src/components/case/casePrint/presentValuesFromStrings.ts b/plugin-hrm-form/src/components/case/casePrint/presentValuesFromStrings.ts index fa727967e5..4f7228bfcb 100644 --- a/plugin-hrm-form/src/components/case/casePrint/presentValuesFromStrings.ts +++ b/plugin-hrm-form/src/components/case/casePrint/presentValuesFromStrings.ts @@ -2,6 +2,6 @@ import { presentValue } from '../../../utils'; export const presentValueFromStrings = (strings: Record) => presentValue( - code => strings[code], + code => strings[code] ?? code, codes => codes.join('\n'), );