From a79f5d5103da0f777151fe2d139ac4691636f44e Mon Sep 17 00:00:00 2001 From: c3024 Date: Fri, 18 Oct 2024 12:20:44 +0530 Subject: [PATCH] replace correct path in nested state --- src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts b/src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts index a9ce45214e5f..fce13143f3fe 100644 --- a/src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts +++ b/src/libs/Navigation/linkingConfig/getAdaptedStateFromPath.ts @@ -379,7 +379,7 @@ const getAdaptedStateFromPath: GetAdaptedStateFromPath = (path, options, shouldR const state = getStateFromPath(pathWithoutPolicyID, options) as PartialState>; if (shouldReplacePathInNestedState) { - replacePathInNestedState(state, path); + replacePathInNestedState(state, normalizedPath); } if (state === undefined) { throw new Error('Unable to parse path');