Skip to content

Commit

Permalink
Fix again exception in conversion to relative navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
albyrock87 committed Jan 17, 2025
1 parent 409b467 commit f932664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Nalu.Maui.Navigation/Internals/NavigationService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ private RelativeNavigation ToRelativeNavigation(INavigationInfo navigation, ILis
((IList<INavigationSegment>)relativeNavigation).Add(navigation[i]);
}

if (navigation is { Intent: { } intent, Count: > 0 })
if (navigation.Intent is { } intent && relativeNavigation.Count > 0)
{
relativeNavigation.WithIntent(intent);
}
Expand Down

0 comments on commit f932664

Please sign in to comment.