Fix create user page

This commit is contained in:
Hazem Krimi
2021-05-20 00:08:32 +01:00
parent c1c5af43a6
commit 4c0c6be967
+1 -2
View File
@@ -138,7 +138,6 @@ const CreateUser = () => {
}); });
setSelectedSection('security'); setSelectedSection('security');
}, },
enableReinitialize: true,
}); });
const { data: countryCodes, loading: countryCodesLoading } = useQuery< const { data: countryCodes, loading: countryCodesLoading } = useQuery<
@@ -169,7 +168,7 @@ const CreateUser = () => {
}), }),
onSubmit: ({ password }) => { onSubmit: ({ password }) => {
setNewUser({ ...newUser, password }); setNewUser({ ...newUser, password });
createUser({ variables: { user: { ...newUser } } }); createUser({ variables: { user: { ...newUser, password } } });
}, },
}); });