Skip to content

Commit

Permalink
Merge pull request #641 from mozzy11/2.8
Browse files Browse the repository at this point in the history
minor fix
  • Loading branch information
mozzy11 authored Dec 7, 2023
2 parents 9eabeea + b2c3cb5 commit 3d53286
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/resultPage/SearchResultForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ export function SearchResults(props) {
{notificationVisible === true ? <AlertDialog /> : ""}
{addRejectResult()}
<>
{props.results.testResult.length > 0 && (
{props.results?.testResult?.length > 0 && (
<Grid style={{ marginTop: "20px" }} className="gridBoundary">
<Column lg={3} />
<Column lg={7}>
Expand Down Expand Up @@ -1143,7 +1143,7 @@ export function SearchResults(props) {
//onBlur={handleBlur}
>
<DataTable
data={props.results.testResult.slice(
data={props.results?.testResult?.slice(
(page - 1) * pageSize,
page * pageSize,
)}
Expand All @@ -1157,7 +1157,7 @@ export function SearchResults(props) {
page={page}
pageSize={pageSize}
pageSizes={[10, 20, 50, 100]}
totalItems={props.results.testResult?.length}
totalItems={props.results?.testResult?.length}
></Pagination>

<Button type="button" id="submit" onClick={handleSave}>
Expand Down

0 comments on commit 3d53286

Please sign in to comment.