Skip to content

Commit

Permalink
Merge pull request #2303 from opengovern/ui-changes
Browse files Browse the repository at this point in the history
fix: pagination on resource types
  • Loading branch information
mohamadch91 authored Dec 23, 2024
2 parents dc14b30 + a74a000 commit 8ae132f
Showing 1 changed file with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
)}
</>
),
},
{
Expand All @@ -452,7 +456,12 @@ export default function EvaluateDetail() {
value: (
<>
<Flex className="w-full ">
<SeverityBar benchmark={detail?.job_details?.job_score} />
<SeverityBar
benchmark={
detail?.job_details
?.job_score
}
/>
</Flex>
</>
),
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit 8ae132f

Please sign in to comment.