From 96045b12a766029a2c45422fd0fd7b2126dae169 Mon Sep 17 00:00:00 2001 From: Mykhailo Kravchenko Date: Fri, 15 Mar 2024 15:09:50 +0100 Subject: [PATCH 1/2] use goBack with a fallback --- src/libs/actions/Policy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/actions/Policy.ts b/src/libs/actions/Policy.ts index 28ce7ea2a159..f7b68951d1b9 100644 --- a/src/libs/actions/Policy.ts +++ b/src/libs/actions/Policy.ts @@ -3174,7 +3174,7 @@ function navigateWhenEnableFeature(policyID: string, featureRoute: Route) { const isNarrowLayout = getIsNarrowLayout(); if (isNarrowLayout) { - Navigation.navigate(ROUTES.WORKSPACE_INITIAL.getRoute(policyID), CONST.NAVIGATION.TYPE.FORCED_UP); + Navigation.goBack(ROUTES.WORKSPACE_INITIAL.getRoute(policyID)); return; } From 1333455e38759e5bda27d3a02539e9e1ac7a8a0a Mon Sep 17 00:00:00 2001 From: Mykhailo Kravchenko Date: Fri, 15 Mar 2024 15:39:07 +0100 Subject: [PATCH 2/2] remove empty line --- src/libs/actions/Policy.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libs/actions/Policy.ts b/src/libs/actions/Policy.ts index f7b68951d1b9..80152c5814ce 100644 --- a/src/libs/actions/Policy.ts +++ b/src/libs/actions/Policy.ts @@ -3175,7 +3175,6 @@ function navigateWhenEnableFeature(policyID: string, featureRoute: Route) { if (isNarrowLayout) { Navigation.goBack(ROUTES.WORKSPACE_INITIAL.getRoute(policyID)); - return; }