Skip to content

Commit

Permalink
fix: pagination on resource types
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadch91 committed Dec 23, 2024
1 parent dc14b30 commit a74a000
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 a74a000

Please sign in to comment.