Skip to content

Commit

Permalink
play with typing to make turbo build happy
Browse files Browse the repository at this point in the history
  • Loading branch information
gordonfarrell committed Nov 7, 2024
1 parent 2112db3 commit c5ccec0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions containers/ecr-viewer/src/app/components/EcrTableClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c5ccec0

Please sign in to comment.