From c5ccec042d346a837ecc0249d86ff92b19af76ea Mon Sep 17 00:00:00 2001 From: Gordon Farrell Date: Thu, 7 Nov 2024 13:58:11 -0700 Subject: [PATCH] play with typing to make turbo build happy --- containers/ecr-viewer/src/app/components/EcrTableClient.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/containers/ecr-viewer/src/app/components/EcrTableClient.tsx b/containers/ecr-viewer/src/app/components/EcrTableClient.tsx index 35e510795b..506c495885 100644 --- a/containers/ecr-viewer/src/app/components/EcrTableClient.tsx +++ b/containers/ecr-viewer/src/app/components/EcrTableClient.tsx @@ -320,10 +320,10 @@ const concatenateAndAddNewlines = (stringArray: []) => { let concatenatedString = ""; for (const item in stringArray) { - console.log("Item: ", item); - concatenatedString += stringArray[item as number]; + const itemAsNumber = item as number; + concatenatedString += stringArray[itemAsNumber]; - if (item < stringArray.length - 1) concatenatedString += "\n\n"; + if (itemAsNumber < stringArray.length - 1) concatenatedString += "\n\n"; } return concatenatedString;