Skip to content

Commit 901173e

Browse files
fix: redirecting to home when there are not roles left after removal (#146)
1 parent f15f8a6 commit 901173e

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/authz-module/audit-user/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ const AuditUserPage = () => {
202202
type: 'success',
203203
});
204204
handleCloseConfirmDeletionModal();
205+
if (remainingRolesCount === 0) {
206+
navigate(AUTHZ_HOME_PATH);
207+
}
205208
},
206209
onError: (error, retryVariables) => {
207210
showErrorToast(error, () => runRevokeRole(retryVariables));

0 commit comments

Comments
 (0)