diff --git a/src/resources/rooms.tsx b/src/resources/rooms.tsx index ca9c6ee..df1211a 100644 --- a/src/resources/rooms.tsx +++ b/src/resources/rooms.tsx @@ -412,6 +412,10 @@ export const RoomList = (props: ListProps) => { record["name"] || record["canonical_alias"] || record["id"]} label="resources.rooms.fields.name" /> diff --git a/src/resources/users.tsx b/src/resources/users.tsx index 9c48033..2c2b617 100644 --- a/src/resources/users.tsx +++ b/src/resources/users.tsx @@ -187,8 +187,23 @@ export const UserList = (props: ListProps) => ( sortBy="avatar_url" label="resources.users.fields.avatar" /> - - + + @@ -283,7 +298,7 @@ export const UserCreate = (props: CreateProps) => { onSuccess: (resource: User) => { notify("ra.notification.created", { messageArgs: { smart_count: 1 } }); redirect(() => { - return `users/${encodeURIComponent(resource.id)}`; + return `users/${encodeURIComponent(resource.id as string)}`; }); }, } @@ -307,7 +322,7 @@ export const UserCreate = (props: CreateProps) => { onSuccess: (resource: User) => { notify("ra.notification.updated", { messageArgs: { smart_count: 1 } }); redirect(() => { - return `users/${encodeURIComponent(resource.id)}`; + return `users/${encodeURIComponent(resource.id as string)}`; }); }, } @@ -602,7 +617,13 @@ export const UserEdit = (props: EditProps) => { link={false} sortable={false} > - +