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

fix: query parameter not being used
This commit is contained in:
Eric Leijonmarck
2023-12-18 12:10:26 +01:00
committed by GitHub
parent 6d9c651b74
commit 03f39f2167

View File

@ -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}`;