joven-health-mike / juno-react

A virtual therapy platform designed for K-12 schools.
0 stars 0 forks source link

Error log when editing numOccurrences field in CreateAppointmentForm #87

Closed joven-health-mike closed 1 year ago

joven-health-mike commented 1 year ago
  1. Monitor console logs in the browser.
  2. Navigate to the CreateAppointmentForm.
  3. Enter a number for Number of Occurrences.

Result: The following error log is printed in the console.

Warning: A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components
    at input
    at label
    at form
    at O (https://localhost:3000/static/js/bundle.js:146108:6)
    at CreateAppointmentForm (https://localhost:3000/static/js/bundle.js:1334:5)
    at div
    at div
    at ModalPortal (https://localhost:3000/static/js/bundle.js:132056:5)
    at Modal (https://localhost:3000/static/js/bundle.js:131684:5)
    at CreateAppointmentModal (https://localhost:3000/static/js/bundle.js:3323:5)
    at div
    at CalendarPage (https://localhost:3000/static/js/bundle.js:5234:122)
    at Routes (https://localhost:3000/static/js/bundle.js:135870:5)
    at PrivateRoutes (https://localhost:3000/static/js/bundle.js:10385:56)
    at AppRouter (https://localhost:3000/static/js/bundle.js:10205:5)
    at UsersProvider (https://localhost:3000/static/js/bundle.js:9967:5)
    at CounselorsProvider (https://localhost:3000/static/js/bundle.js:9506:5)
    at SchoolsProvider (https://localhost:3000/static/js/bundle.js:9652:5)
    at AppointmentsProvider (https://localhost:3000/static/js/bundle.js:9342:5)
    at StudentsProvider (https://localhost:3000/static/js/bundle.js:9813:5)
    at App (https://localhost:3000/static/js/bundle.js:49:96)
    at Router (https://localhost:3000/static/js/bundle.js:135803:15)
    at BrowserRouter (https://localhost:3000/static/js/bundle.js:134612:5)
joven-health-mike commented 1 year ago

Fixed in #127