mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-05-31 20:24:21 -04:00
Applied review comments
This commit is contained in:
parent
56a4aa180b
commit
cd75df6521
@ -1216,13 +1216,7 @@ public sealed class BaseItemRepository
|
|||||||
|
|
||||||
if (hasSearch)
|
if (hasSearch)
|
||||||
{
|
{
|
||||||
List<(ItemSortBy, SortOrder)> prepend = new List<(ItemSortBy, SortOrder)>(4);
|
orderBy = filter.OrderBy = [(ItemSortBy.SortName, SortOrder.Ascending), .. orderBy];
|
||||||
if (hasSearch)
|
|
||||||
{
|
|
||||||
prepend.Add((ItemSortBy.SortName, SortOrder.Ascending));
|
|
||||||
}
|
|
||||||
|
|
||||||
orderBy = filter.OrderBy = [.. prepend, .. orderBy];
|
|
||||||
}
|
}
|
||||||
else if (orderBy.Count == 0)
|
else if (orderBy.Count == 0)
|
||||||
{
|
{
|
||||||
|
@ -62,7 +62,7 @@ public sealed class LibraryStructureControllerTests : IClassFixture<JellyfinAppl
|
|||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
[Fact]
|
||||||
[Priority(-2)]
|
[Priority(0)]
|
||||||
public async Task UpdateLibraryOptions_Valid_Success()
|
public async Task UpdateLibraryOptions_Valid_Success()
|
||||||
{
|
{
|
||||||
var client = _factory.CreateClient();
|
var client = _factory.CreateClient();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user