From 2859b0ae8cbc130ddf355d7a7f30cd970595f6fc Mon Sep 17 00:00:00 2001 From: jusrhee Date: Thu, 1 Feb 2024 11:16:53 -0500 Subject: [PATCH] Update ClusterRevisionSelector.tsx (#4211) Co-authored-by: ianedwards --- .../cluster-dashboard/dashboard/ClusterRevisionSelector.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dashboard/src/main/home/cluster-dashboard/dashboard/ClusterRevisionSelector.tsx b/dashboard/src/main/home/cluster-dashboard/dashboard/ClusterRevisionSelector.tsx index 86dc6b3059..559f9b74e6 100644 --- a/dashboard/src/main/home/cluster-dashboard/dashboard/ClusterRevisionSelector.tsx +++ b/dashboard/src/main/home/cluster-dashboard/dashboard/ClusterRevisionSelector.tsx @@ -40,7 +40,7 @@ const ClusterRevisionSelector: React.FC = ({ 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") { @@ -143,7 +143,7 @@ const ClusterRevisionSelector: React.FC = ({ selected={selectedId === i} > {versions.length - i} - {readableDate(version.CreatedAt)} + {readableDate(version.created_at)} {/* = ({ )} - {readableDate(pendingContract.CreatedAt)} + {readableDate(pendingContract.created_at)} {failedContractId && (
{ setShowConfirmOverlay(true); }}>