Skip to content

Commit

Permalink
Merge pull request #22982 from dukenv0307/fix/22290
Browse files Browse the repository at this point in the history
Go back to new task page if the URL doesn't contain reportID
  • Loading branch information
neil-marcellini authored Jul 24, 2023
2 parents dbbb809 + e3d8af2 commit a656c82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/pages/tasks/TaskAssigneeSelectorModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function TaskAssigneeSelectorModal(props) {
// Clear out the state value, set the assignee and navigate back to the NewTaskPage
setSearchValue('');
Task.setAssigneeValue(option.login, option.accountID, props.task.shareDestination, OptionsListUtils.isCurrentUser(option));
return Navigation.goBack();
return Navigation.goBack(ROUTES.NEW_TASK);
}

// Check to see if we're editing a task and if so, update the assignee
Expand Down
2 changes: 1 addition & 1 deletion src/pages/tasks/TaskShareDestinationSelectorModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ function TaskShareDestinationSelectorModal(props) {
// Clear out the state value, set the assignee and navigate back to the NewTaskPage
setSearchValue('');
Task.setShareDestinationValue(option.reportID);
Navigation.goBack();
Navigation.goBack(ROUTES.NEW_TASK);
}
};

Expand Down

0 comments on commit a656c82

Please sign in to comment.