From e32430cf15b3fcdf35e8d43f82c027fea50c20d3 Mon Sep 17 00:00:00 2001 From: FitseTLT Date: Tue, 27 Aug 2024 21:40:16 +0300 Subject: [PATCH] allow clearing of task description --- src/libs/actions/Task.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[] = [