Skip to content

Commit

Permalink
fix error when assign totalnew person
Browse files Browse the repository at this point in the history
  • Loading branch information
dukenv0307 committed Aug 8, 2023
1 parent 5644e7f commit a1e39d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/actions/Task.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ function editTaskAndNavigate(report, ownerAccountID, {title, description, assign
let optimisticAssigneeAddComment;
let assigneeChatReportID;
if (assigneeAccountID && assigneeAccountID !== report.managerID && assigneeAccountID !== ownerAccountID) {
assigneeChatReportID = ReportUtils.getChatByParticipants([assigneeAccountID]).reportID;
assigneeChatReportID = lodashGet(ReportUtils.getChatByParticipants([assigneeAccountID]), ['reportID'], undefined);

if (assigneeChatReportID !== report.parentReportID.toString()) {
if (assigneeChatReportID && assigneeChatReportID !== report.parentReportID.toString()) {
optimisticAssigneeAddComment = ReportUtils.buildOptimisticTaskCommentReportAction(
report.reportID,
reportName,
Expand Down

0 comments on commit a1e39d1

Please sign in to comment.