Skip to content

Commit

Permalink
fix(admin-ui): ui crashes on unavailable scope entries
Browse files Browse the repository at this point in the history
Signed-off-by: Jeet Viramgama <jviramgama5@gmail.com>
  • Loading branch information
jv18creator committed Sep 20, 2023
1 parent f265fcf commit dbb8675
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin-ui/plugins/auth-server/redux/features/scopeSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const scopeSlice = createSlice({
handleUpdateScopeResponse: (state, action) => {
state.loading = false
if (action.payload.data) {
state.items = action.payload.data.entries
state.items = action.payload.data.entries || []
state.totalItems = action.payload.data.totalEntriesCount
state.entriesCount = action.payload.data.entriesCount
} else {
Expand Down

0 comments on commit dbb8675

Please sign in to comment.