Skip to content

Commit

Permalink
Fix redirect URL after user creation
Browse files Browse the repository at this point in the history
  • Loading branch information
beastafk committed Sep 4, 2024
1 parent 8eaaaa5 commit 4f58398
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/resources/users.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)} />
Expand Down

0 comments on commit 4f58398

Please sign in to comment.