From c8a71f6606d17568d456df785577bb153832b6db Mon Sep 17 00:00:00 2001 From: konavivekramakrishna <101407963+konavivekramakrishna@users.noreply.github.com> Date: Wed, 13 Dec 2023 20:38:57 +0530 Subject: [PATCH] Removed required attribute from Respiratory Rate (#6738) * Remove required attribute from Respiratory Rate input field * Fix validation error for respiratory rate field --- src/Components/Patient/DailyRounds.tsx | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/Components/Patient/DailyRounds.tsx b/src/Components/Patient/DailyRounds.tsx index 30aab2c28fb..4105cffb96c 100644 --- a/src/Components/Patient/DailyRounds.tsx +++ b/src/Components/Patient/DailyRounds.tsx @@ -256,16 +256,7 @@ export const DailyRounds = (props: any) => { invalidForm = true; } return; - case "resp": - if ( - state.form.resp === null && - state.form.rounds_type === "NORMAL" && - state.form.clone_last !== true - ) { - errors[field] = "Please enter a respiratory rate"; - invalidForm = true; - } - return; + default: return; } @@ -588,7 +579,6 @@ export const DailyRounds = (props: any) => { {...field("resp")} label="Respiratory Rate" unit="bpm" - required start={0} end={50} step={1}