From 74f8087e0259bd41d284491a46fdf18eb05c41c0 Mon Sep 17 00:00:00 2001 From: Dysto coder Date: Wed, 14 Aug 2024 00:47:51 +0300 Subject: [PATCH] Copy markdown task action message --- src/pages/home/report/ContextMenu/ContextMenuActions.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/home/report/ContextMenu/ContextMenuActions.tsx b/src/pages/home/report/ContextMenu/ContextMenuActions.tsx index 50b7e9c76153..8ed59037800c 100644 --- a/src/pages/home/report/ContextMenu/ContextMenuActions.tsx +++ b/src/pages/home/report/ContextMenu/ContextMenuActions.tsx @@ -409,8 +409,9 @@ const ContextMenuActions: ContextMenuAction[] = [ const displayMessage = ReportUtils.getReportPreviewMessage(iouReportID, reportAction); Clipboard.setString(displayMessage); } else if (ReportActionsUtils.isTaskAction(reportAction)) { - const displayMessage = TaskUtils.getTaskReportActionMessage(reportAction).text; - Clipboard.setString(displayMessage); + const {text, html} = TaskUtils.getTaskReportActionMessage(reportAction); + const displayMessage = html ?? text; + setClipboardMessage(displayMessage); } else if (ReportActionsUtils.isModifiedExpenseAction(reportAction)) { const modifyExpenseMessage = ModifiedExpenseMessage.getForReportAction(reportID, reportAction); Clipboard.setString(modifyExpenseMessage);