Skip to content

Commit

Permalink
Add catch for project creation
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgDangl committed Jul 4, 2024
1 parent 668610f commit c23f6eb
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ import {
} from '../../generated-client/generated-client';
import {
Subject,
catchError,
combineLatestWith,
filter,
of,
switchMap,
take,
takeUntil,
Expand Down Expand Up @@ -196,6 +198,18 @@ export class ProjectsTableComponent
identifier: s.username,
})
.pipe(
catchError((err) => {
this.projectsService.forceRefresh();

if (this.filter) {
this.applyFilter(this.filter);
}
this.notificationsService.success('Project created');
this.notificationsService.info(
'Current user was not added, please add manually'
);
return of([]);
}),
tap(() => {
this.selectedProjectMessengerService.setSelectedProject(p);
})
Expand Down

0 comments on commit c23f6eb

Please sign in to comment.