Skip to content

Commit

Permalink
Find.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahelsaig committed Feb 2, 2024
1 parent 5fc1c68 commit 2f54e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lombiq.HelpfulLibraries.OrchardCore/Mvc/TypedRoute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private TypedRoute(
_action = action;
_arguments = arguments;

if (_arguments.FirstOrDefault(pair => pair.Key.EqualsOrdinalIgnoreCase("area")) is { Value: { } value } area)
if (_arguments.Find(pair => pair.Key.EqualsOrdinalIgnoreCase("area")) is { Value: { } value } area)
{
_area = value;
_arguments.Remove(area);
Expand Down

0 comments on commit 2f54e79

Please sign in to comment.