Skip to content

Commit

Permalink
Merge pull request Expensify#48227 from FitseTLT/fix-unable-to-clear-…
Browse files Browse the repository at this point in the history
…task-description

Fix - Task - Unable to remove task description
  • Loading branch information
deetergp authored Sep 4, 2024
2 parents cb2bdf2 + 6e053b0 commit 62e6f63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/actions/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
Expand Down

0 comments on commit 62e6f63

Please sign in to comment.