function handleGrowerFormSubmit(event) {
        event.preventDefault();
        // Don't do anything if the name fields hasn't been filled out
        // if (!growerName.val().trim().trim()) {
        //     return;
        // }
        // Calling the upsertGrower function and passing in the value of the name input
        upsertGrower({
            grower_name: growerName.val().trim(),
            license: growerLicense.val().trim(),
            city: growerCity.val().trim(),
            state: growerState.val().trim(),
            email: growerEmail.val().trim(),
            bio: growerBio.val().trim(),
            indoor: growerIndoor,
            strains: growerStrains.val().trim(),
            cycle: growerCycle.val().trim()
        });
    }
// A function to handle what happens when the form is submitted to create a new Grower
A function to handle what happens when the form is submitted to create a new Grower
A function to handle what happens when the form is submitted to create a new Grower
function handleGrowerFormSubmit(event) {
        event.preventDefault();
        upsertGrower({
            grower_name: growerName.val().trim(),
            license: growerLicense.val().trim(),
            city: growerCity.val().trim(),
            state: growerState.val().trim(),
            email: growerEmail.val().trim(),
            bio: growerBio.val().trim(),
            indoor: growerIndoor,
            strains: growerStrains.val().trim(),
            cycle: growerCycle.val().trim()
        });
    }
function handleGrowerFormSubmit ( event ) { event . preventDefault ( ) ; upsertGrower ( { grower_name : growerName . val ( ) . trim ( ) , license : growerLicense . val ( ) . trim ( ) , city : growerCity . val ( ) . trim ( ) , state : growerState . val ( ) . trim ( ) , email : growerEmail . val ( ) . trim ( ) , bio : growerBio . val ( ) . trim ( ) , indoor : growerIndoor , strains : growerStrains . val ( ) . trim ( ) , cycle : growerCycle . val ( ) . trim ( ) } ) ; }
A function to handle what happens when the form is submitted to create a new Grower
A function to handle what happens when the form is submitted to create a new Grower
// Don't do anything if the name fields hasn't been filled out // if (!growerName.val().trim().trim()) { //     return; // } // Calling the upsertGrower function and passing in the value of the name input