Skip to content

Commit 6f4c824

Browse files
committed
refactor: remove nullish coalescing ?? to be browser compatible
1 parent fa7f933 commit 6f4c824

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/router/utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,8 @@ function flattenRoutes<
378378
relativePath?: string
379379
) => {
380380
let meta: RouteMeta<RouteObjectType> = {
381-
relativePath: relativePath ?? (route.path || ""),
381+
relativePath:
382+
relativePath === undefined ? route.path || "" : relativePath,
382383
caseSensitive: route.caseSensitive === true,
383384
childrenIndex: index,
384385
route,

0 commit comments

Comments
 (0)