1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

refactor: use ItemSortBy from generated SDK

This commit is contained in:
Dmitry Lyzo 2024-03-29 01:01:31 +03:00
parent 2e4eb68d59
commit 52c150a2e7
2 changed files with 17 additions and 15 deletions

View file

@ -7,6 +7,7 @@ import ServerConnections from 'components/ServerConnections';
import dom from 'scripts/dom';
import globalize from 'scripts/globalize';
import { getBackdropShape, getPortraitShape, getSquareShape } from 'utils/card';
import { ItemSortBy } from '@jellyfin/sdk/lib/generated-client/models/item-sort-by';
import 'elements/emby-itemscontainer/emby-itemscontainer';
import 'elements/emby-scroller/emby-scroller';
@ -133,7 +134,7 @@ function getFetchDataFn(section) {
return function () {
const apiClient = this.apiClient;
const options = {
SortBy: 'SeriesSortName,SortName',
SortBy: [ItemSortBy.SeriesSortName, ItemSortBy.SortName].join(','),
SortOrder: 'Ascending',
Filters: 'IsFavorite',
Recursive: true,