Skip to content

Commit

Permalink
Merge pull request #44988 from etCoderDysto/dismis-modal
Browse files Browse the repository at this point in the history
fix: Navigate to details page after updating report title
  • Loading branch information
iwiznia authored Jul 9, 2024
2 parents bd19803 + 6a8de39 commit 8547850
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/EditReportFieldPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ function EditReportFieldPage({route, policy, report}: EditReportFieldPageProps)
const value = form[fieldKey];
if (isReportFieldTitle) {
ReportActions.updateReportName(report.reportID, value, report.reportName ?? '');
Navigation.goBack();
} else {
ReportActions.updateReportField(report.reportID, {...reportField, value: value === '' ? null : value}, reportField);
Navigation.dismissModal(report?.reportID);
}

Navigation.dismissModal(report?.reportID);
};

const handleReportFieldDelete = () => {
Expand Down

0 comments on commit 8547850

Please sign in to comment.