Skip to content

Commit

Permalink
Merge pull request #21045 from honnamkuan/20622
Browse files Browse the repository at this point in the history
pop the deleted workspace page from navigation
  • Loading branch information
mountiny authored Jun 19, 2023
2 parents 3b945c0 + ba75873 commit 9559a54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pages/workspace/WorkspaceInitialPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ function WorkspaceInitialPage(props) {
const policyReports = _.filter(props.reports, (report) => report && report.policyID === policy.id);
Policy.deleteWorkspace(policy.id, policyReports, policy.name);
setIsDeleteModalOpen(false);
// Pop the deleted workspace page before opening workspace settings.
Navigation.goBack();
Navigation.navigate(ROUTES.SETTINGS_WORKSPACES);
}, [props.reports, policy]);

Expand Down

0 comments on commit 9559a54

Please sign in to comment.