PublicDataWorks / complaint-manager

Apache License 2.0
5 stars 0 forks source link

IntakeSource value is sending previous value to DB when Editing Incident Details #522

Open rnair-tw opened 8 months ago

rnair-tw commented 8 months ago

Steps to Reproduce

In the code Add a console log to editIncidentDetails.js action creator and log the values submitted to the DB:

Image

In Hawaii Env UI Open devtools to see console log in previous step Create a case with any intake source Navigate to the case details page Click edit case details Change the value of the dropdown Click Submit

Notice the value of the dropdown quickly reverts to previously selected value Notice the console log of the value sent to the DB

Previous Value when clicking edit: Image

Value updated to new reason: Image

value sent to DB: Image

rnair-tw commented 8 months ago

if the DB values are correct and this is a UI glitch, then we don't need to fix this