From 81043a763ed690e5eb8be8ae9e0e6603e2b5d832 Mon Sep 17 00:00:00 2001 From: "Grot (@grafanabot)" <43478413+grafanabot@users.noreply.github.com> Date: Fri, 19 Nov 2021 06:05:43 -0500 Subject: [PATCH] Fix loop when cannot fetch roles (#41901) (#41945) (cherry picked from commit d66158a042440f3daa4974d5dee732ff51db535d) Co-authored-by: Alexander Zobnin --- .../app/core/components/RolePicker/UserRolePicker.tsx | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/public/app/core/components/RolePicker/UserRolePicker.tsx b/public/app/core/components/RolePicker/UserRolePicker.tsx index ffb152e414b..175e6c4dd16 100644 --- a/public/app/core/components/RolePicker/UserRolePicker.tsx +++ b/public/app/core/components/RolePicker/UserRolePicker.tsx @@ -60,11 +60,16 @@ export const fetchUserRoles = async (userId: number, orgId?: number): Promise {