diff --git a/src/hooks/usePlaylist.ts b/src/hooks/usePlaylist.ts index c9c32073b..9fc3dfed1 100644 --- a/src/hooks/usePlaylist.ts +++ b/src/hooks/usePlaylist.ts @@ -10,5 +10,5 @@ const getPlaylistById = (playlistId: string) => { export type UsePlaylistResult = UseBaseQueryResult; export default function usePlaylist(playlistId: string): UsePlaylistResult { - return useQuery(['playlist', playlistId], () => getPlaylistById(playlistId)); + return useQuery(['playlist', playlistId], () => getPlaylistById(playlistId), { enabled: !!playlistId }); } diff --git a/src/screens/Home/Home.tsx b/src/screens/Home/Home.tsx index 665ebadd7..bf45f5d45 100644 --- a/src/screens/Home/Home.tsx +++ b/src/screens/Home/Home.tsx @@ -93,8 +93,6 @@ const Home = (): JSX.Element => { return (
- {/* !!content[index]} loadMoreRows={loadMoreRows} rowCount={5}> - {({ onRowsRendered, registerChild }) => ( */} ((listRef.current as unknown) as List)?.recomputeRowHeights()}> {({ height, isScrolling, onChildScroll, scrollTop }) => ( { /> )} - {/* )} - */}
); };