When creating a detailed log update with respiratory support options (NIV, IV, OS) but without selecting a mode, the data does not display correctly in the ventilator log or graph, even though the data itself is being stored correctly.
To Reproduce
Steps to reproduce the behavior:
Navigate to the Patient Consultation page.
Click on Log Update and create a detailed log update.
In the Respiratory Support section, select NIV, IV, or OS without selecting a mode.
Submit the form and navigate to the Ventilator section.
Observe the error in the log and graph display.
Expected behavior
[ ] The logs should display the NIV, IV, or OS data with the mode field left blank, and the system should handle this case gracefully.
Describe the bug
edge case bug from : https://github.com/ohcnetwork/care_fe/pull/8781
When creating a detailed log update with respiratory support options (NIV, IV, OS) but without selecting a mode, the data does not display correctly in the ventilator log or graph, even though the data itself is being stored correctly.
To Reproduce Steps to reproduce the behavior:
Expected behavior
Screenshots