Skip to content

Commit

Permalink
chore: tweak to not filter the array
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaellis committed Mar 15, 2024
1 parent a77bb0a commit 2a96ff5
Showing 1 changed file with 12 additions and 10 deletions.
Expand Up @@ -680,16 +680,18 @@ const ReleaseDetailsBody = ({ releaseId }: ReleaseDetailsBodyProps) => {
}),
name: 'action',
},
!release.releasedAt
? {
label: formatMessage({
id: 'content-releases.page.ReleaseDetails.table.header.label.status',
defaultMessage: 'status',
}),
name: 'status',
}
: null,
].filter((head) => Boolean(head)) as Table.Header<FormattedReleaseAction, any>[];
...(!release.releasedAt
? [
{
label: formatMessage({
id: 'content-releases.page.ReleaseDetails.table.header.label.status',
defaultMessage: 'status',
}),
name: 'status',
},
]
: []),
];

return (
<ContentLayout>
Expand Down

0 comments on commit 2a96ff5

Please sign in to comment.