Skip to content

Commit d04c541

Browse files
committed
Fix tests from conflicting PRs
1 parent 0d2a38c commit d04c541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-router/lib/hooks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ export function _renderMatches(
732732
let errorElement: React.ReactNode | null = null;
733733
let hydrateFallbackElement: React.ReactNode | null = null;
734734
if (dataRouterState) {
735-
error = errors && match.route.id ? errors[match.route.id] : null;
735+
error = errors && match.route.id ? errors[match.route.id] : undefined;
736736
errorElement = match.route.errorElement || defaultErrorElement;
737737

738738
if (renderFallback) {

0 commit comments

Comments
 (0)