Skip to content

Commit

Permalink
fix(admin-ui): delete client fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mjatin-dev committed Oct 20, 2022
1 parent aae952a commit 94696bf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ function ClientListPage() {
{hasPermission(permissions, CLIENT_DELETE) && (
<GluuDialog
row={item}
name={item.clientName}
name={item?.clientName?.value || ''}
handler={toggle}
modal={modal}
subject="openid connect client"
Expand Down
2 changes: 1 addition & 1 deletion admin-ui/plugins/auth-server/redux/api/OIDCApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class OIDCApi {

deleteAClient = async (inum) => {
return new Promise((resolve, reject) => {
this.api.deleteOauthOpenidClientsByInum(inum, (error, data) => {
this.api.deleteOauthOpenidClientByInum(inum, (error, data) => {
handleResponse(error, reject, resolve, data)
})
})
Expand Down
3 changes: 2 additions & 1 deletion admin-ui/plugins/auth-server/redux/sagas/OIDCSaga.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import {
addClientResponse,
editClientResponse,
deleteClientResponse,
getOpenidClients
} from '../actions/OIDCActions'
import { getAPIAccessToken } from '../actions/AuthActions'
import { OIDC } from '../audit/Resources'
Expand Down Expand Up @@ -105,7 +106,7 @@ export function* deleteAClient({ payload }) {
addAdditionalData(audit, DELETION, OIDC, payload)
const api = yield* newFunction()
yield call(api.deleteAClient, payload.action.action_data)
yield put(deleteClientResponse(payload.action.action_data))
yield put(getOpenidClients())
yield call(postUserAction, audit)
} catch (e) {
yield put(deleteClientResponse(null))
Expand Down

0 comments on commit 94696bf

Please sign in to comment.