Skip to content

Commit

Permalink
reset permissions to initial state on error
Browse files Browse the repository at this point in the history
  • Loading branch information
thewahome committed Feb 28, 2024
1 parent 304bb39 commit f26df60
Showing 1 changed file with 1 addition and 1 deletion.
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: state.data
data: initialState.data
};
case FETCH_URL_SCOPES_PENDING:
return {
Expand Down

0 comments on commit f26df60

Please sign in to comment.