Skip to content

Commit

Permalink
Revert: Fix blank import per diem page
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham1206agra committed Nov 25, 2024
1 parent b3f7d89 commit e95e4cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pages/workspace/perDiem/ImportedPerDiemPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import {findDuplicate, generateColumnNames} from '@libs/importSpreadsheetUtils';
import Navigation from '@libs/Navigation/Navigation';
import type {SettingsNavigatorParamList} from '@libs/Navigation/types';
import {getPerDiemCustomUnit} from '@libs/PolicyUtils';
import NotFoundPage from '@pages/ErrorPage/NotFoundPage';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
Expand Down Expand Up @@ -129,7 +128,7 @@ function ImportedPerDiemPage({route}: ImportedPerDiemPageProps) {

const spreadsheetColumns = spreadsheet?.data;
if (!spreadsheetColumns) {
return <NotFoundPage onBackButtonPress={() => Navigation.goBack(ROUTES.WORKSPACE_PER_DIEM_IMPORT.getRoute(policyID))} />;
return;
}

const closeImportPageAndModal = () => {
Expand Down

0 comments on commit e95e4cd

Please sign in to comment.