Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
import Parser from './Parser';
import {getParsedMessageWithShortMentions} from './ParsingUtils';
import Permissions from './Permissions';
import {getReportName as getReportNameReportNameUtils} from '@libs/ReportNameUtils';

Check failure on line 134 in src/libs/ReportUtils.ts

View workflow job for this annotation

GitHub Actions / ESLint check

`@libs/ReportNameUtils` import should occur before import of `./actions/BankAccounts`

Check failure on line 134 in src/libs/ReportUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

`@libs/ReportNameUtils` import should occur before import of `./actions/BankAccounts`

Check warning on line 134 in src/libs/ReportUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Unexpected subpath import via alias '@libs/ReportNameUtils'. Use './ReportNameUtils' instead
import {
getAccountIDsByLogins,
getDisplayNameOrDefault,
Expand Down Expand Up @@ -6846,7 +6847,7 @@
};
}

if (isInstantSubmitEnabledLocal) {
if (isInstantSubmitEnabledLocal && !isEmptyOptimisticReport) {
return {
stateNum: CONST.REPORT.STATE_NUM.SUBMITTED,
statusNum: CONST.REPORT.STATUS_NUM.SUBMITTED,
Expand Down Expand Up @@ -7025,7 +7026,7 @@
const fromReport = allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${fromReportID}`];

const report = fromReport ?? toReport;
const reportName = getReportName(report) ?? report?.reportName ?? '';
const reportName = getReportNameReportNameUtils(report) ?? report?.reportName ?? '';
let reportUrl = getReportURLForCurrentContext(report?.reportID);
if (typeof fromReportID === 'undefined') {
// eslint-disable-next-line @typescript-eslint/no-deprecated
Expand Down Expand Up @@ -7054,7 +7055,7 @@

const fromReport = allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${fromReportID}`];

const reportName = getReportName(fromReport) ?? fromReport?.reportName ?? '';
const reportName = getReportNameReportNameUtils(fromReport) ?? fromReport?.reportName ?? '';

let reportUrl = `${environmentURL}/r/${fromReport?.reportID}`;

Expand Down
Loading