Fix redirect URL after user creation (#16)

* Fix redirect URL after user creation

* increment version; update readme
This commit is contained in:
Borislav Pantaleev
2024-09-05 09:02:29 +03:00
committed by Aine
parent 8eaaaa50ec
commit eff17a0929
3 changed files with 5 additions and 3 deletions

View File

@@ -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)} />