Rolepicker: Fix remove query parameter not being used (#79629)

fix: query parameter not being used
pull/79631/head
Eric Leijonmarck 2 years ago committed by GitHub
parent 6d9c651b74
commit 03f39f2167
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      public/app/core/components/RolePicker/api.ts

@ -3,7 +3,7 @@ import { Role } from 'app/types';
import { addDisplayNameForFixedRole } from './utils';
export const fetchRoleOptions = async (orgId?: number, query?: string): Promise<Role[]> => {
export const fetchRoleOptions = async (orgId?: number): Promise<Role[]> => {
let rolesUrl = '/api/access-control/roles?delegatable=true';
if (orgId) {
rolesUrl += `&targetOrgId=${orgId}`;

Loading…
Cancel
Save