From ba4ea4ca606007ac358e3a13f09d39e25a250be3 Mon Sep 17 00:00:00 2001 From: Pavlo Tsimura Date: Sat, 9 Dec 2023 06:29:31 +0100 Subject: [PATCH] Use TaskUtils instead of @actions/Task --- src/pages/home/report/ContextMenu/ContextMenuActions.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/pages/home/report/ContextMenu/ContextMenuActions.js b/src/pages/home/report/ContextMenu/ContextMenuActions.js index 7d12edc24d3c..74be544a3520 100644 --- a/src/pages/home/report/ContextMenu/ContextMenuActions.js +++ b/src/pages/home/report/ContextMenu/ContextMenuActions.js @@ -20,7 +20,6 @@ import * as ReportUtils from '@libs/ReportUtils'; import * as TaskUtils from '@libs/TaskUtils'; import * as Download from '@userActions/Download'; import * as Report from '@userActions/Report'; -import * as Task from '@userActions/Task'; import CONST from '@src/CONST'; import ROUTES from '@src/ROUTES'; import {clearActiveReportAction, hideContextMenu, showDeleteModal} from './ReportActionContextMenu'; @@ -266,7 +265,7 @@ export default [ const isTaskAction = ReportActionsUtils.isTaskAction(reportAction); const isReportPreviewAction = ReportActionsUtils.isReportPreviewAction(reportAction); const message = _.last(lodashGet(reportAction, 'message', [{}])); - const messageHtml = isTaskAction ? Task.getTaskReportActionMessage(reportAction) : lodashGet(message, 'html', ''); + const messageHtml = isTaskAction ? TaskUtils.getTaskReportActionMessage(reportAction.actionName) : lodashGet(message, 'html', ''); const isAttachment = ReportActionsUtils.isReportActionAttachment(reportAction); if (!isAttachment) {