From f6f13a4e274c05a9931787218838f6f8e6b8f666 Mon Sep 17 00:00:00 2001 From: truph01 Date: Mon, 1 Jul 2024 12:33:54 +0700 Subject: [PATCH 1/2] Fix: After inviting a member navigating back takes you back to members page --- src/pages/workspace/WorkspaceInviteMessagePage.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/workspace/WorkspaceInviteMessagePage.tsx b/src/pages/workspace/WorkspaceInviteMessagePage.tsx index 9bab92bc38b0..fc394890b5c7 100644 --- a/src/pages/workspace/WorkspaceInviteMessagePage.tsx +++ b/src/pages/workspace/WorkspaceInviteMessagePage.tsx @@ -114,8 +114,7 @@ function WorkspaceInviteMessagePage({ debouncedSaveDraft(null); SearchInputManager.searchInput = ''; // Pop the invite message page before navigating to the members page. - Navigation.goBack(); - Navigation.navigate(ROUTES.WORKSPACE_MEMBERS.getRoute(route.params.policyID)); + Navigation.dismissModal(); }; /** Opens privacy url as an external link */ From d686ba9bc92dd4085bce4836b0ae8938d8079ac1 Mon Sep 17 00:00:00 2001 From: truph01 Date: Mon, 1 Jul 2024 19:12:01 +0700 Subject: [PATCH 2/2] Fix: Remove comment --- src/pages/workspace/WorkspaceInviteMessagePage.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/pages/workspace/WorkspaceInviteMessagePage.tsx b/src/pages/workspace/WorkspaceInviteMessagePage.tsx index fc394890b5c7..753f2e4e9728 100644 --- a/src/pages/workspace/WorkspaceInviteMessagePage.tsx +++ b/src/pages/workspace/WorkspaceInviteMessagePage.tsx @@ -113,7 +113,6 @@ function WorkspaceInviteMessagePage({ Member.addMembersToWorkspace(invitedEmailsToAccountIDsDraft ?? {}, `${welcomeNoteSubject}\n\n${welcomeNote}`, route.params.policyID); debouncedSaveDraft(null); SearchInputManager.searchInput = ''; - // Pop the invite message page before navigating to the members page. Navigation.dismissModal(); };