chore: fix role handler

This commit is contained in:
Steven 2023-07-14 13:36:32 +08:00
parent a0766159f2
commit af31875e6a

View File

@ -80,7 +80,7 @@ const CreateUserDialog: React.FC<Props> = (props: Props) => {
const handleRoleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => { const handleRoleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
setPartialState({ setPartialState({
userCreate: Object.assign(state.userCreate, { userCreate: Object.assign(state.userCreate, {
visibility: e.target.value, role: e.target.value,
}), }),
}); });
}; };