Skip to content

Commit

Permalink
Fix Containers tab for Tenant's Pod (#1583)
Browse files Browse the repository at this point in the history
Code was iterating on null objects and was failing while trying to fetch a key from them

Co-authored-by: cesnietor <>
  • Loading branch information
cesnietor committed Apr 24, 2023
1 parent 2e00f13 commit 3fcbcb7
Showing 1 changed file with 9 additions and 7 deletions.
Expand Up @@ -305,13 +305,15 @@ const PodDescribeTable = ({
</TableRow>
</TableHead>
<TableBody>
{items.map((item, i) => (
<TableRow key={i}>
{columns.map((column, j) => (
<TableCell key={j}>{item[column]}</TableCell>
))}
</TableRow>
))}
{items
.filter((item) => item !== null)
.map((item, i) => (
<TableRow key={i}>
{columns.map((column, j) => (
<TableCell key={j}>{item[column]}</TableCell>
))}
</TableRow>
))}
</TableBody>
</Table>
</TableContainer>
Expand Down

0 comments on commit 3fcbcb7

Please sign in to comment.