diff --git a/src/libs/actions/Task.ts b/src/libs/actions/Task.ts index 001245717e12..dc3b6781ee83 100644 --- a/src/libs/actions/Task.ts +++ b/src/libs/actions/Task.ts @@ -499,7 +499,7 @@ function editTask(report: OnyxTypes.Report, {title, description}: OnyxTypes.Task const reportName = (title ?? report?.reportName)?.trim(); // Description can be unset, so we default to an empty string if so - const newDescription = description ? ReportUtils.getParsedComment(description) : report.description; + const newDescription = typeof description === 'string' ? ReportUtils.getParsedComment(description) : report.description; const reportDescription = (newDescription ?? '').trim(); const optimisticData: OnyxUpdate[] = [