Skip to content

Commit

Permalink
missing cast added
Browse files Browse the repository at this point in the history
  • Loading branch information
enchev committed Feb 22, 2025
1 parent 3249591 commit 654bd80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Radzen.Blazor/QueryableExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ static string EnumerableAsString(IQueryable enumerableValue, string baseType, ob

};

var finalValues = value != null && !(IsEnumerable(value.GetType()) && !(value is string)) ? new object[] { value }.AsQueryable() : enumerableValue;
var finalValues = value != null && !(IsEnumerable(value.GetType()) && !(value is string)) ? new object[] { value }.AsQueryable().Cast(value.GetType()) : enumerableValue;

return "new " + baseType + "[]{" + String.Join(",", values(finalValues)) + "}";
}
Expand Down

0 comments on commit 654bd80

Please sign in to comment.