Skip to content

Commit

Permalink
Fix: failing permissions panel load (#3000)
Browse files Browse the repository at this point in the history
  • Loading branch information
thewahome committed Feb 13, 2024
1 parent efe85e5 commit d451983
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/app/services/reducers/permissions-reducer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ describe('Permissions reducer', () => {
}
const expectedState = {
pending: { isSpecificPermissions: false, isFullPermissions: false },
data: {},
data: {
fullPermissions: [],
specificPermissions: []
},
error: 'error'
}

Expand Down
2 changes: 1 addition & 1 deletion src/app/services/reducers/permissions-reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function scopes(state: IScopes = initialState, action: AppAction): any {
return {
pending: { isFullPermissions: false, isSpecificPermissions: false },
error: action.response,
data: {}
data: state.data
};
case FETCH_URL_SCOPES_PENDING:
return {
Expand Down

0 comments on commit d451983

Please sign in to comment.