Skip to content

Commit

Permalink
Update ClusterRevisionSelector.tsx (#4211)
Browse files Browse the repository at this point in the history
Co-authored-by: ianedwards <[email protected]>
  • Loading branch information
jusrhee and ianedwards authored Feb 1, 2024
1 parent c204d97 commit 2859b0a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const ClusterRevisionSelector: React.FC<Props> = ({
setFailedContractId("");
setProvisionFailureReason("");
data.sort((a: any, b: any) => {
return Date.parse(a.CreatedAt) > Date.parse(b.CreatedAt) ? -1 : 1;
return Date.parse(a.created_at) > Date.parse(b.created_at) ? -1 : 1;
});
let activeCandidate;
if (data[0].condition !== "SUCCESS") {
Expand Down Expand Up @@ -143,7 +143,7 @@ const ClusterRevisionSelector: React.FC<Props> = ({
selected={selectedId === i}
>
<Td>{versions.length - i}</Td>
<Td>{readableDate(version.CreatedAt)}</Td>
<Td>{readableDate(version.created_at)}</Td>
{/*
<Td>
<RollbackButton
Expand Down Expand Up @@ -180,7 +180,7 @@ const ClusterRevisionSelector: React.FC<Props> = ({
</Flex>
)}
</Td>
<Td>{readableDate(pendingContract.CreatedAt)}</Td>
<Td>{readableDate(pendingContract.created_at)}</Td>
{failedContractId && (
<DeleteButton>
<div onClick={() => { setShowConfirmOverlay(true); }}>
Expand Down

0 comments on commit 2859b0a

Please sign in to comment.