Skip to content

Commit

Permalink
Update getPathFromState.ts (#862)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBacon authored Aug 28, 2023
1 parent 87e7a16 commit 78e0c29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/expo-router/src/fork/getPathFromState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ function getPathFromResolvedState(
while (current) {
path += "/";

const route = current.routes[current.index ?? 0] as CustomRoute;
const route = { ...(current.routes[current.index ?? 0] as CustomRoute) };
// NOTE(EvanBacon): Fill in current route using state that was passed as params.
// if (isInvalidParams(route.params)) {
if (!route.state && isInvalidParams(route.params)) {
Expand Down

0 comments on commit 78e0c29

Please sign in to comment.