From e1259641389bfa1a295d94327dca77b5fc0c3a82 Mon Sep 17 00:00:00 2001 From: Giorgi Lagidze Date: Tue, 27 Jul 2021 20:03:11 +0400 Subject: [PATCH] add role id for finance column (#1561) --- src/apps/Permissions/PermissionsView.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/apps/Permissions/PermissionsView.js b/src/apps/Permissions/PermissionsView.js index 730ffad82..39ac07ce1 100644 --- a/src/apps/Permissions/PermissionsView.js +++ b/src/apps/Permissions/PermissionsView.js @@ -85,7 +85,12 @@ function renderEntry({ entities, app, role, manager }, showApps) { ${textStyle('body2')} `} > - {role.name} + {role.name || + role.id + ?.toLowerCase() + .split('_') + .slice(0, -1) + .join(' ')} , , ,