From 099d74a8481769f6ecdf529d9a1356e60e530f1c Mon Sep 17 00:00:00 2001 From: Mutesasira Moses Date: Fri, 1 Dec 2023 17:10:32 +0300 Subject: [PATCH] fix validation page --- .../src/components/validation/Validation.js | 40 ++++--------------- frontend/src/components/workplan/Workplan.js | 2 +- 2 files changed, 9 insertions(+), 33 deletions(-) diff --git a/frontend/src/components/validation/Validation.js b/frontend/src/components/validation/Validation.js index 39c6a10b01..ad09d00d6f 100644 --- a/frontend/src/components/validation/Validation.js +++ b/frontend/src/components/validation/Validation.js @@ -264,38 +264,14 @@ const Validation = (props) => { case "C": case "D": return ( - - ); - - case "N": - return ( - handleChange(e, row.id)} - /> - ); + <> + { + row.dictionaryResults.find( + (result) => result.id == row.result, + )?.value + } + + ) default: return row.result; } diff --git a/frontend/src/components/workplan/Workplan.js b/frontend/src/components/workplan/Workplan.js index ccac55aea5..8fb6bb69b8 100644 --- a/frontend/src/components/workplan/Workplan.js +++ b/frontend/src/components/workplan/Workplan.js @@ -347,7 +347,7 @@ export default function Workplan(props) { onChange={handlePageChange} page={page} pageSize={pageSize} - pageSizes={[10, 20, 30]} + pageSizes={[10, 20, 50, 100]} totalItems={testsList.length} >