diff --git a/client/src/components/UserUpdate.js b/client/src/components/UserUpdate.js index 8c4d4f454..3560cd6aa 100644 --- a/client/src/components/UserUpdate.js +++ b/client/src/components/UserUpdate.js @@ -161,6 +161,7 @@ console.log("component will UNmount"); /* Now we can set the default values for the form fields. */ + this.refs.alias.value = user.alias; this.refs.firstName.value = user.firstName; this.refs.middleName.value = user.middleName; this.refs.lastName.value = user.lastName; @@ -170,6 +171,9 @@ console.log("component will UNmount"); this.refs.isTrader.checked = user.isTrader; this.refs.isDataAnalyst.checked = user.isDataAnalyst; this.refs.select.value = user.role.id; + console.log("select value ", this.refs.select.value); + console.log("select ", this.refs.select); + this.setState({ id: user.id, @@ -191,9 +195,36 @@ console.log("render"); return(