From 8196a876bdda0c50bf4e1ae2f6adef0900599a70 Mon Sep 17 00:00:00 2001 From: Chakravarthi Medicharla Date: Fri, 10 Nov 2023 11:19:58 +0530 Subject: [PATCH] Handle undefined api response cases --- build/static/js/bundle.js | 2 +- build/static/js/bundle.js.map | 2 +- src/api/userroles/role/index.ts | 16 ++------ src/api/userroles/role/permissions.ts | 12 ++++-- src/api/userroles/user/roles.ts | 11 +++-- src/ui/components/userDetail/userDetail.tsx | 22 ++++++---- .../userroles/components/RolesTable.tsx | 28 ++++++++----- .../components/dialogs/AssignRoles.tsx | 18 ++++++--- .../components/dialogs/CreateNewRole.tsx | 40 +++++++++++-------- 9 files changed, 91 insertions(+), 60 deletions(-) diff --git a/build/static/js/bundle.js b/build/static/js/bundle.js index 3716be6f..621dd109 100644 --- a/build/static/js/bundle.js +++ b/build/static/js/bundle.js @@ -1,3 +1,3 @@ /*! For license information please see bundle.js.LICENSE.txt */ -!function(){var e={1694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t