From a74a000204464d51cbfb8168d2810e8ab1c491a3 Mon Sep 17 00:00:00 2001 From: Mohamad Choupan Date: Mon, 23 Dec 2024 22:23:35 +0330 Subject: [PATCH] fix: pagination on resource types --- .../EvaluateTable/EvaluateDetail/inde.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/services/web-ui/src/pages/Governance/Compliance/NewBenchmarkSummary/EvaluateTable/EvaluateDetail/inde.tsx b/services/web-ui/src/pages/Governance/Compliance/NewBenchmarkSummary/EvaluateTable/EvaluateDetail/inde.tsx index cb075f4a1..7ba8e407f 100644 --- a/services/web-ui/src/pages/Governance/Compliance/NewBenchmarkSummary/EvaluateTable/EvaluateDetail/inde.tsx +++ b/services/web-ui/src/pages/Governance/Compliance/NewBenchmarkSummary/EvaluateTable/EvaluateDetail/inde.tsx @@ -443,7 +443,11 @@ export default function EvaluateDetail() { { label: 'Last Evaulated at', value: ( - <>{dateTimeDisplay(detail?.job_details?.updated_at)} + <> + {dateTimeDisplay( + detail?.job_details?.updated_at + )} + ), }, { @@ -452,7 +456,12 @@ export default function EvaluateDetail() { value: ( <> - + ), @@ -741,7 +750,10 @@ export default function EvaluateDetail() { enableKeyboardNavigation items={ resources - ? resources.slice(page * 7, (page + 1) * 7) + ? resources.slice( + resourcePage * 7, + (resourcePage + 1) * 7 + ) : [] } loading={detailLoading}