Fix invalid request for all items on page load

This commit is contained in:
Bill Thornton
2026-07-14 14:33:08 -04:00
parent 601bd46245
commit 077059546b
+3 -3
View File
@@ -187,14 +187,14 @@ export const useGetQueryFiltersLegacy = (
const fetchGetItemsViewByType = async (
currentApi: JellyfinApiContext,
viewType: LibraryTab,
viewType: LibraryTab | undefined,
parentId: ParentId,
itemType: BaseItemKind[],
libraryViewSettings: LibraryViewSettings,
options?: AxiosRequestConfig
) => {
const { api, user } = currentApi;
if (api && user?.Id) {
if (api && user?.Id && viewType) {
const isFavorite = libraryViewSettings.Filters?.Status?.includes(ItemFilter.IsFavorite) || undefined;
let response;
switch (viewType) {
@@ -380,7 +380,7 @@ export const useGetItemsViewByType = (
queryFn: ({ signal }) =>
fetchGetItemsViewByType(
currentApi,
viewType!,
viewType,
parentId,
itemType,
libraryViewSettings!,