Skip to content

feat: display builtin roles alongside custom roles #14843

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: remove explicit boolean check
  • Loading branch information
jaaydenh committed Sep 27, 2024
commit 8ca8c8c504b7233cbd74ccd138f4107ff2c27a1b
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ export const CustomRolesPage: FC = () => {
const [roleToDelete, setRoleToDelete] = useState<Role>();
const organizationRolesQuery = useQuery(organizationRoles(organizationName));
const builtInRoles = organizationRolesQuery.data?.filter(
(role) => role.built_in === true,
(role) => role.built_in,
);
const customRoles = organizationRolesQuery.data?.filter(
(role) => role.built_in === false,
(role) => !role.built_in,
);
const permissions = permissionsQuery.data;

Expand Down
Loading