Skip to content

Commit

Permalink
fix(dsp-app): handles project edit errors (#DEV-3205) (#1369)
Browse files Browse the repository at this point in the history
  • Loading branch information
irmastnt committed Jan 23, 2024
1 parent 1f03e7d commit 27f58b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/vre/shared/app-state/src/lib/projects/projects.state.ts
Expand Up @@ -279,6 +279,13 @@ export class ProjectsState {
next: response => {
ctx.dispatch(new LoadProjectsAction());
},
error: (error: ApiResponseError) => {
ctx.patchState({ hasLoadingErrors: true });
this.errorHandler.showMessage(error);
},
}),
finalize(() => {
ctx.patchState({ isLoading: false });
})
);
}
Expand Down

0 comments on commit 27f58b3

Please sign in to comment.