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

Fix removed sdk function

This commit is contained in:
Bill Thornton 2024-03-26 11:04:58 -04:00
parent 7eb7418eab
commit a022a07620

View file

@ -34,7 +34,7 @@ const SearchSuggestions: FunctionComponent<SearchSuggestionsProps> = ({ parentId
useEffect(() => { useEffect(() => {
if (api && user?.Id) { if (api && user?.Id) {
getItemsApi(api) getItemsApi(api)
.getItemsByUserId({ .getItems({
userId: user.Id, userId: user.Id,
sortBy: [ItemSortBy.IsFavoriteOrLiked, ItemSortBy.Random], sortBy: [ItemSortBy.IsFavoriteOrLiked, ItemSortBy.Random],
includeItemTypes: [BaseItemKind.Movie, BaseItemKind.Series, BaseItemKind.MusicArtist], includeItemTypes: [BaseItemKind.Movie, BaseItemKind.Series, BaseItemKind.MusicArtist],