mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 15:03:02 +00:00
Fix EditUser submit bug
This commit is contained in:
@@ -36,14 +36,7 @@ const AddUser = (props) => {
|
||||
type="checkbox"
|
||||
value=""
|
||||
id="admin-check"
|
||||
onChange={(e) =>
|
||||
// this.setState(
|
||||
// Object.assign({}, this.state, {
|
||||
// admin: e.target.checked,
|
||||
// })
|
||||
// )
|
||||
setAdmin(e.target.checked)
|
||||
}
|
||||
onChange={(e) => setAdmin(e.target.checked)}
|
||||
/>
|
||||
<span> </span>
|
||||
<label className="form-check-label">Admin</label>
|
||||
|
Reference in New Issue
Block a user