Skip to content

Commit

Permalink
fix (table) : converting IQueryable to IOrderedQueryable returned null
Browse files Browse the repository at this point in the history
  • Loading branch information
YongQuan-dotnet committed Sep 7, 2022
1 parent 08f1ba4 commit 94cee49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/table/TableModels/ITableSortModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ public interface ITableSortModel : ICloneable

internal void SetSortDirection(SortDirection sortDirection);

internal IOrderedQueryable<TItem> SortList<TItem>(IQueryable<TItem> source);
internal IQueryable<TItem> SortList<TItem>(IQueryable<TItem> source);
}
}
4 changes: 2 additions & 2 deletions components/table/TableModels/SortModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ void ITableSortModel.SetSortDirection(SortDirection sortDirection)
_sortDirection = sortDirection;
}

IOrderedQueryable<TItem> ITableSortModel.SortList<TItem>(IQueryable<TItem> source)
IQueryable<TItem> ITableSortModel.SortList<TItem>(IQueryable<TItem> source)
{
if (_sortDirection == SortDirection.None)
{
return source as IOrderedQueryable<TItem>;
return source;
}

var lambda = (Expression<Func<TItem, TField>>)_getFieldExpression;
Expand Down

0 comments on commit 94cee49

Please sign in to comment.