Skip to content

Commit

Permalink
Merge pull request #51071 from c3024/replace-correct-path-in-nested-s…
Browse files Browse the repository at this point in the history
…tate

Replace with correct path in nested state
  • Loading branch information
marcochavezf authored Oct 21, 2024
2 parents 23ea36a + a79f5d5 commit 16e3620
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ const getAdaptedStateFromPath: GetAdaptedStateFromPath = (path, options, shouldR

const state = getStateFromPath(pathWithoutPolicyID, options) as PartialState<NavigationState<RootStackParamList>>;
if (shouldReplacePathInNestedState) {
replacePathInNestedState(state, path);
replacePathInNestedState(state, normalizedPath);
}
if (state === undefined) {
throw new Error('Unable to parse path');
Expand Down

0 comments on commit 16e3620

Please sign in to comment.