Set default value of SortBy during migrations.
This commit is contained in:
parent
754837f16f
commit
4b8ab1a803
|
@ -119,7 +119,7 @@ namespace Jellyfin.Server.Migrations.Routines
|
||||||
|
|
||||||
var libraryDisplayPreferences = new ItemDisplayPreferences(displayPreferences.UserId, itemId, displayPreferences.Client)
|
var libraryDisplayPreferences = new ItemDisplayPreferences(displayPreferences.UserId, itemId, displayPreferences.Client)
|
||||||
{
|
{
|
||||||
SortBy = dto.SortBy,
|
SortBy = dto.SortBy ?? "SortName",
|
||||||
SortOrder = dto.SortOrder,
|
SortOrder = dto.SortOrder,
|
||||||
RememberIndexing = dto.RememberIndexing,
|
RememberIndexing = dto.RememberIndexing,
|
||||||
RememberSorting = dto.RememberSorting,
|
RememberSorting = dto.RememberSorting,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user