Skip to content

Commit 08f8227

Browse files
committed
remove extra object mapping - not needed after removing instances
1 parent 59b2d13 commit 08f8227

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

frontend/common/AboutModal.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -62,20 +62,11 @@ export function AnsibleAboutModal(props: AnsibleAboutModalProps) {
6262
) : (
6363
Object.entries(info).map(([key, value]) => (
6464
<React.Fragment key={key}>
65-
{typeof value === 'object' ? (
66-
Object.entries(value).map(([foo, bar]) => (
67-
<DescriptionListGroup key={foo}>
68-
<DescriptionListTerm>{translateVersion(foo, t)}</DescriptionListTerm>
69-
<StyledDescriptionListDescription>
70-
{bar as string}
71-
</StyledDescriptionListDescription>
72-
</DescriptionListGroup>
73-
))
74-
) : (
65+
{
7566
<StyledDescriptionListDescription>
7667
{t(value)}
7768
</StyledDescriptionListDescription>
78-
)}
69+
}
7970
</React.Fragment>
8071
))
8172
)}

0 commit comments

Comments
 (0)