From a83d31c3e1f48934328dbb8c0b00d3f3bf497927 Mon Sep 17 00:00:00 2001 From: yasin Date: Tue, 8 Aug 2023 11:15:42 +0100 Subject: [PATCH] ADJUST1-117 ushow ual type text, bug fix - was showing object --- server/model/reviewModel.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/model/reviewModel.ts b/server/model/reviewModel.ts index d3b14503..ffe02d2d 100644 --- a/server/model/reviewModel.ts +++ b/server/model/reviewModel.ts @@ -88,6 +88,7 @@ export default class ReviewModel { } private static ualRows(adjustment: Adjustment) { + const type = ualType.find(it => it.value === adjustment.unlawfullyAtLarge?.type) return [ { key: { @@ -118,7 +119,7 @@ export default class ReviewModel { text: 'Type of UAL', }, value: { - text: ualType.find(it => it.value === adjustment.unlawfullyAtLarge?.type) || 'Unknown', + text: type ? type.text : 'Unknown', }, }, ]