Skip to content

Commit

Permalink
[state-router] Allow null as options to route
Browse files Browse the repository at this point in the history
  • Loading branch information
rexxars committed Oct 6, 2020
1 parent 5fa0b56 commit 68d5ad1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@sanity/state-router/src/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function normalizeArgs(

export default function route(
routeOrOpts: string | NodeOptions,
childrenOrOpts?: NodeOptions | RouteChildren,
childrenOrOpts?: NodeOptions | RouteChildren | null,
children?: Router | RouteChildren
): Router {
return createNode(normalizeArgs(routeOrOpts, childrenOrOpts, children))
Expand Down

0 comments on commit 68d5ad1

Please sign in to comment.