Skip to content

Commit

Permalink
go back to new page if the URL doesn't contain reportID
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Jul 17, 2023
1 parent 6e5b07c commit e3d8af2
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 e3d8af2

Please sign in to comment.