diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 09e3671b0df9..09edfcfcdcee 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -4595,7 +4595,7 @@ function buildOptimisticTaskCommentReportAction( taskTitle: string, taskAssigneeAccountID: number, text: string, - parentReportID: string, + parentReportID: string | undefined, actorAccountID?: number, createdOffset = 0, ): OptimisticReportAction { @@ -7514,7 +7514,7 @@ function getTaskAssigneeChatOnyxData( assigneeAccountID: number, taskReportID: string, assigneeChatReportID: string, - parentReportID: string, + parentReportID: string | undefined, title: string, assigneeChatReport: OnyxEntry, ): OnyxDataTaskAssigneeChat { diff --git a/src/libs/actions/Task.ts b/src/libs/actions/Task.ts index 0659d5df2cd7..75cb4d5527ac 100644 --- a/src/libs/actions/Task.ts +++ b/src/libs/actions/Task.ts @@ -725,8 +725,7 @@ function editTaskAssignee(report: OnyxTypes.Report, sessionAccountID: number, as assigneeAccountID, report.reportID, assigneeChatReportID, - // eslint-disable-next-line @typescript-eslint/non-nullable-type-assertion-style - report.parentReportID as string, + report.parentReportID, reportName ?? '', assigneeChatReport, );