Skip to content

Commit

Permalink
Merge pull request #55566 from callstack-internal/pac-guerreiro/fix/5…
Browse files Browse the repository at this point in the history
…0360-follow-up

[No QA] 50360 - Follow up to fix eslint errors
  • Loading branch information
neil-marcellini authored Jan 23, 2025
2 parents fd66e86 + 978ab86 commit b16abc8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/libs/actions/Task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import type {Icon} from '@src/types/onyx/OnyxCommon';
import type {ReportActions} from '@src/types/onyx/ReportAction';
import type ReportAction from '@src/types/onyx/ReportAction';
import {isEmptyObject} from '@src/types/utils/EmptyObject';
import * as Report from './Report';
import {getMostRecentReportID, navigateToConciergeChatAndDeleteReport, notifyNewAction} from './Report';

type OptimisticReport = Pick<OnyxTypes.Report, 'reportName' | 'managerID' | 'pendingFields' | 'participants'>;
type Assignee = {
Expand Down Expand Up @@ -335,7 +335,7 @@ function createTaskAndNavigate(
clearOutTaskInfo();
Navigation.dismissModal(parentReportID);
}
Report.notifyNewAction(parentReportID, currentUserAccountID);
notifyNewAction(parentReportID, currentUserAccountID);
}

/**
Expand Down Expand Up @@ -1014,7 +1014,7 @@ function getNavigationUrlOnTaskDelete(report: OnyxEntry<OnyxTypes.Report>): stri
}

// If no parent report, try to navigate to most recent report
const mostRecentReportID = Report.getMostRecentReportID(report);
const mostRecentReportID = getMostRecentReportID(report);
if (mostRecentReportID) {
return ROUTES.REPORT_WITH_ID.getRoute(mostRecentReportID);
}
Expand Down Expand Up @@ -1162,7 +1162,7 @@ function deleteTask(report: OnyxEntry<OnyxTypes.Report>) {
};

API.write(WRITE_COMMANDS.CANCEL_TASK, parameters, {optimisticData, successData, failureData});
Report.notifyNewAction(report.reportID, currentUserAccountID);
notifyNewAction(report.reportID, currentUserAccountID);

const urlToNavigateBack = getNavigationUrlOnTaskDelete(report);
if (urlToNavigateBack) {
Expand Down Expand Up @@ -1258,7 +1258,7 @@ function clearTaskErrors(reportID: string) {
if (report?.pendingFields?.createChat === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD) {
Onyx.merge(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${report.parentReportID}`, report.parentReportActionID ? {[report.parentReportActionID]: null} : {});

Report.navigateToConciergeChatAndDeleteReport(reportID);
navigateToConciergeChatAndDeleteReport(reportID);
return;
}

Expand Down

0 comments on commit b16abc8

Please sign in to comment.