Skip to content

Commit 29a8700

Browse files
Update packages/react/src/reactrouter-compat-utils/utils.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1deccb8 commit 29a8700

File tree

1 file changed

+1
-1
lines changed
  • packages/react/src/reactrouter-compat-utils

1 file changed

+1
-1
lines changed

packages/react/src/reactrouter-compat-utils/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function clearNavigationContext(): void {
2929
/** Gets the current (most recent) navigation context if inside a patchRoutesOnNavigation call. */
3030
export function getNavigationContext(): NavigationContext | null {
3131
const length = _navigationContextStack.length;
32-
return length > 0 ? (_navigationContextStack[length - 1] ?? null) : null;
32+
return length > 0 ? _navigationContextStack[length - 1] : null;
3333
}
3434

3535
/**

0 commit comments

Comments
 (0)