mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Replace jellyfin sdk generated-client models wiyh full path
Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
This commit is contained in:
parent
8cbddba8fd
commit
511f8340ef
14 changed files with 28 additions and 26 deletions
|
@ -174,7 +174,7 @@ const ItemsContainer: FC<ItemsContainerProps> = ({
|
|||
|
||||
const invalidateQueries = useCallback(async () => {
|
||||
await queryClient.invalidateQueries({
|
||||
queryKey: queryKey,
|
||||
queryKey,
|
||||
type: 'all',
|
||||
refetchType: 'active'
|
||||
});
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client';
|
||||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
||||
import { useQueryClient } from '@tanstack/react-query';
|
||||
import React, { type FC, useCallback } from 'react';
|
||||
import CheckIcon from '@mui/icons-material/Check';
|
||||
|
@ -48,7 +48,7 @@ const PlayedButton: FC<PlayedButtonProps> = ({
|
|||
},
|
||||
{ onSuccess: async() => {
|
||||
await queryClient.invalidateQueries({
|
||||
queryKey: queryKey,
|
||||
queryKey,
|
||||
type: 'all',
|
||||
refetchType: 'active'
|
||||
});
|
||||
|
|
|
@ -34,7 +34,7 @@ const FavoriteButton: FC<FavoriteButtonProps> = ({
|
|||
},
|
||||
{ onSuccess: async() => {
|
||||
await queryClient.invalidateQueries({
|
||||
queryKey: queryKey,
|
||||
queryKey,
|
||||
type: 'all',
|
||||
refetchType: 'active'
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue