From 9cfb16a7e757ddf301cc0dd0add04fd3b1ce9ff8 Mon Sep 17 00:00:00 2001 From: Luka Radenovic Date: Wed, 15 Jun 2022 14:50:35 +0200 Subject: [PATCH] Fixed role management while changing own role and removed No access from dashboard dropdown role --- src/components/UserModal/UserModal.tsx | 67 +++++++++++++------------- 1 file changed, 33 insertions(+), 34 deletions(-) diff --git a/src/components/UserModal/UserModal.tsx b/src/components/UserModal/UserModal.tsx index a810f30..00fcb9b 100644 --- a/src/components/UserModal/UserModal.tsx +++ b/src/components/UserModal/UserModal.tsx @@ -122,42 +122,41 @@ export const UserModal = ({ open, onClose, userId, setUserId }: UserModalProps)
- -
- {fields - .filter((field) => field.name === 'dashboard') - .map((item, index) => ( - - - - - + <> +
+ {fields + .filter((field) => field.name === 'dashboard') + .map((item, index) => ( + + + + + +
+
+ )}