Skip to content

Commit

Permalink
allow clearing of task description
Browse files Browse the repository at this point in the history
  • Loading branch information
FitseTLT committed Aug 27, 2024
1 parent 0fd1de0 commit e32430c
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 e32430c

Please sign in to comment.