Fix redirect URL after user creation (#16)
* Fix redirect URL after user creation * increment version; update readme
This commit is contained in:
@@ -204,7 +204,9 @@ const UserEditActions = () => {
|
||||
};
|
||||
|
||||
export const UserCreate = (props: CreateProps) => (
|
||||
<Create {...props}>
|
||||
<Create { ...props} redirect={(resource, id, data) => {
|
||||
return `users/${id}`;
|
||||
}}>
|
||||
<SimpleForm>
|
||||
<TextInput source="id" autoComplete="off" validate={validateUser} />
|
||||
<TextInput source="displayname" validate={maxLength(256)} />
|
||||
|
Reference in New Issue
Block a user