Skip to content

Commit

Permalink
_
Browse files Browse the repository at this point in the history
  • Loading branch information
codekeyz committed Nov 13, 2024
1 parent 64e1bea commit 1257dd8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/spanner/lib/src/tree/tree.dart
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ class Spanner {

wildcardNode = childNode?.wildcardNode ?? wildcardNode;

if (childNode == null && parametricNode == null && wildcardNode == null) {
return RouteResult(resolvedParams, getResults(null));
}

// set root node as current child
rootNode = childNode ?? parametricNode ?? rootNode;

Expand Down

0 comments on commit 1257dd8

Please sign in to comment.