Skip to content

Commit

Permalink
Fix tests from conflicting PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Dec 4, 2023
1 parent 0d2a38c commit d04c541
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-router/lib/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ export function _renderMatches(
let errorElement: React.ReactNode | null = null;
let hydrateFallbackElement: React.ReactNode | null = null;
if (dataRouterState) {
error = errors && match.route.id ? errors[match.route.id] : null;
error = errors && match.route.id ? errors[match.route.id] : undefined;
errorElement = match.route.errorElement || defaultErrorElement;

if (renderFallback) {
Expand Down

0 comments on commit d04c541

Please sign in to comment.