Skip to content

Commit

Permalink
Merge pull request #29029 from ahmedGaber93/issue-28026
Browse files Browse the repository at this point in the history
fix displaying not found page in TaskAssigneeSelectorModal.js
  • Loading branch information
srikarparsi authored Oct 11, 2023
2 parents 72a11ca + a3091d2 commit aff40fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/tasks/TaskAssigneeSelectorModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ function TaskAssigneeSelectorModal(props) {
}
};

const isOpen = ReportUtils.isOpenTaskReport(props.task.report);
const canModifyTask = Task.canModifyTask(props.task.report, props.currentUserPersonalDetails.accountID);
const isTaskNonEditable = report && ReportUtils.isTaskReport(props.task.report) && (!canModifyTask || !isOpen);
const isOpen = ReportUtils.isOpenTaskReport(report);
const canModifyTask = Task.canModifyTask(report, props.currentUserPersonalDetails.accountID);
const isTaskNonEditable = ReportUtils.isTaskReport(report) && (!canModifyTask || !isOpen);

return (
<ScreenWrapper
Expand Down

0 comments on commit aff40fe

Please sign in to comment.