Skip to content

Commit

Permalink
fix(project): i#4109 redirect after create project
Browse files Browse the repository at this point in the history
  • Loading branch information
cocotime committed Nov 15, 2023
1 parent e52ddb0 commit b8460d4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ describe('NewProjectEffects', () => {

expect(effects.createProjectSuccess$).toSatisfyOnFlush(() => {
expect(router.navigate).toHaveBeenCalledWith(
['/project/', project.id, project.slug, 'kanban'],
['/project/', project.id, project.slug, 'kanban', 'main'],
{ state: { invite: true } }
);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,13 @@ export class NewProjectEffects {
ofType(NewProjectActions.createProjectSuccess),
map((action) => {
void this.router.navigate(
['/project/', action.project.id, action.project.slug, 'kanban'],
[
'/project/',
action.project.id,
action.project.slug,
'kanban',
'main',
],
{
state: { invite: true },
}
Expand Down

0 comments on commit b8460d4

Please sign in to comment.