Skip to content

Commit d2cea8b

Browse files
committed
change logic navigate after deleting comment
1 parent eb215da commit d2cea8b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/libs/actions/Report.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1741,8 +1741,7 @@ function deleteReportComment(reportID: string | undefined, reportAction: ReportA
17411741
if (Navigation.isActiveRoute(ROUTES.REPORT_WITH_ID.getRoute(reportID, reportActionID)) && !isDeletedParentAction) {
17421742
Navigation.goBack(ROUTES.REPORT_WITH_ID.getRoute(reportID));
17431743
} else if (Navigation.isActiveRoute(ROUTES.REPORT_WITH_ID.getRoute(reportAction.childReportID)) && !isDeletedParentAction) {
1744-
Navigation.setShouldPopAllStateOnUP(true);
1745-
Navigation.goBack(undefined, {shouldPopToTop: true});
1744+
Navigation.goBack(undefined);
17461745
}
17471746
}
17481747

0 commit comments

Comments
 (0)