show array of types on installations actions page

Signed-off-by: Brian Fletcher <brian@roadie.io>
This commit is contained in:
Brian Fletcher
2022-12-12 10:26:16 +00:00
parent f9519bbb21
commit db6310b6a0
2 changed files with 11 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder': patch
---
Show input type array correctly on installed actions page.
@@ -22,6 +22,7 @@ import {
Table,
TableBody,
Box,
Chip,
TableCell,
TableContainer,
TableHead,
@@ -107,7 +108,11 @@ export const ActionsPage = () => {
<TableCell>{props.title}</TableCell>
<TableCell>{props.description}</TableCell>
<TableCell>
<span className={classes.code}>{props.type}</span>
<>
{[props.type].flat().map(type => (
<Chip label={type} />
))}
</>
</TableCell>
</TableRow>
);