diff --git a/src/view/components/GenresItemsContainer.tsx b/src/view/components/GenresItemsContainer.tsx index 2a616f0a8..c6c608aab 100644 --- a/src/view/components/GenresItemsContainer.tsx +++ b/src/view/components/GenresItemsContainer.tsx @@ -10,16 +10,14 @@ import cardBuilder from '../../components/cardbuilder/cardBuilder'; import layoutManager from '../../components/layoutManager'; import lazyLoader from '../../components/lazyLoader/lazyLoaderIntersectionObserver'; import globalize from '../../scripts/globalize'; -import { IQuery } from './type'; type GenresItemsContainerProps = { topParentId?: string | null; getCurrentViewStyle: () => string; - query: IQuery; itemsResult?: BaseItemDtoQueryResult; } -const GenresItemsContainer: FunctionComponent = ({ topParentId, getCurrentViewStyle, query, itemsResult = {} }: GenresItemsContainerProps) => { +const GenresItemsContainer: FunctionComponent = ({ topParentId, getCurrentViewStyle, itemsResult = {} }: GenresItemsContainerProps) => { const element = useRef(null); const enableScrollX = useCallback(() => { @@ -154,7 +152,7 @@ const GenresItemsContainer: FunctionComponent = ({ to elem.innerHTML = html; lazyLoader.lazyChildren(elem, fillItemsContainer); - }, [getCurrentViewStyle, query.SortBy, itemsResult.Items, fillItemsContainer, topParentId, enableScrollX]); + }, [getCurrentViewStyle, itemsResult.Items, fillItemsContainer, topParentId, enableScrollX]); return (
diff --git a/src/view/movies/GenresView.tsx b/src/view/movies/GenresView.tsx index b37d5fbec..d442def73 100644 --- a/src/view/movies/GenresView.tsx +++ b/src/view/movies/GenresView.tsx @@ -53,7 +53,7 @@ const GenresView: FunctionComponent = ({ topParentId }: IProps) => { }, [reloadItems]); return (
- +
); };