You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When form data is submitted and the server sends a successful post response for a visit, visit.service and visit.program goes from an id (integer) to an object. This throws a Material-UI select warning because an object is not an expected value.
2 possible solutions:
hold two different state objects for the visit in mobx, one for form data/input and one for current visit/responses
useState for onChange values inside the component itself. this method will need extra care that the correct values are validated and submitted. first method preferred
The text was updated successfully, but these errors were encountered:
When form data is submitted and the server sends a successful post response for a visit,
visit.service
andvisit.program
goes from an id (integer) to an object. This throws a Material-UIselect
warning because an object is not an expected value.2 possible solutions:
The text was updated successfully, but these errors were encountered: