From 9c3401426412dcfde5d3b2e55eb3a3c06e334600 Mon Sep 17 00:00:00 2001 From: nikolai Date: Wed, 18 Dec 2024 13:35:46 +0400 Subject: [PATCH] fix: UILD-421: adjust multiple instances table title seleciton --- src/common/helpers/recordFormatting.helper.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/helpers/recordFormatting.helper.ts b/src/common/helpers/recordFormatting.helper.ts index fc5f9435..731bc95c 100644 --- a/src/common/helpers/recordFormatting.helper.ts +++ b/src/common/helpers/recordFormatting.helper.ts @@ -240,7 +240,8 @@ export const formatDependeciesTable = (deps: Record[]): Row[] = string, unknown[] >; - const selectedTitle = (rest?.[BFLITE_URIS.TITLE] as Record)?.[0] as Record< + const titleContainer = rest?.[BFLITE_URIS.TITLE] as Record[]; + const selectedTitle = titleContainer?.find(title => Object.hasOwn(title, BFLITE_URIS.TITLE_CONTAINER)) as Record< string, Record >;