Skip to content

Commit 9c48bb8

Browse files
committed
Fix null and undefined check
1 parent a61207a commit 9c48bb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-router/lib/router/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4909,7 +4909,7 @@ const loadLazyRouteProperty = ({
49094909
);
49104910
} else {
49114911
let value = await lazyFn();
4912-
if (value) {
4912+
if (value != null) {
49134913
Object.assign(routeToUpdate, { [key]: value });
49144914
Object.assign(routeToUpdate, mapRouteProperties(routeToUpdate));
49154915
}

0 commit comments

Comments
 (0)