Skip to content
Permalink
Browse files
[fix](frontend)fix bug with role list navigate to role detail page fa…
…ilure (#34)

fix bug with role list navigate to role detail page failure
  • Loading branch information
wangyf0555 committed Apr 7, 2022
1 parent 179c892 commit f934c10e94b0e3aae2aaef6887042f2116a52c20
Showing 2 changed files with 4 additions and 2 deletions.
@@ -39,7 +39,9 @@ export function RoleList() {
{
title: t`roleName`,
key: 'name',
render: (record: IRole) => <FlatBtn to={record.id}>{showName(record.name)}</FlatBtn>,
render: (record: IRole) => (
<FlatBtn to={`/admin/people/role/${record.id}`}>{showName(record.name)}</FlatBtn>
),
},
{
title: t`members`,
@@ -33,7 +33,7 @@ import { useMatch } from 'react-router';

export function RoleMembers() {
const { t } = useTranslation();
const match = useMatch('admin/role/:roleId');
const match = useMatch('admin/people/role/:roleId');
const roleId = match?.params.roleId as string;
const { users } = useSpaceUsers();
const { members, getRoleMembers, loading } = useRoleMember(roleId);

0 comments on commit f934c10

Please sign in to comment.