diff --git a/react_frontend/src/components/dashboard/WatchActivityChart.tsx b/react_frontend/src/components/dashboard/WatchActivityChart.tsx index e79d5fb..ff5f08e 100644 --- a/react_frontend/src/components/dashboard/WatchActivityChart.tsx +++ b/react_frontend/src/components/dashboard/WatchActivityChart.tsx @@ -45,7 +45,7 @@ export function WatchActivityChart() { return buildChartData(data.series, data.movies); }, [data]); - const years = Array.from({ length: 5 }, (_, i) => currentYear - i); + const years = Array.from({ length: 8 }, (_, i) => currentYear - i); const showMovies = filter === 'all' || filter === 'movies'; const showEpisodes = filter === 'all' || filter === 'episodes'; diff --git a/react_frontend/src/components/entries/TrendingSlider.tsx b/react_frontend/src/components/entries/TrendingSlider.tsx index a5aeccb..f61a2d6 100644 --- a/react_frontend/src/components/entries/TrendingSlider.tsx +++ b/react_frontend/src/components/entries/TrendingSlider.tsx @@ -14,6 +14,7 @@ interface TrendingSliderProps { export function TrendingSlider({ entries, isLoading }: TrendingSliderProps) { const [currentIndex, setCurrentIndex] = useState(0); const createEntry = useCreateEntry(); + const libraryEntries = useLibraryStore((s) => s.entries); const display = entries.slice(0, 10); const countRef = useRef(display.length); countRef.current = display.length; @@ -53,7 +54,6 @@ export function TrendingSlider({ entries, isLoading }: TrendingSliderProps) { : null; const isTv = item.media_type === 'tv' || !!item.name; - const libraryEntries = useLibraryStore((s) => s.entries); const matchedEntry = Array.from(libraryEntries.values()).find( (e) => e.entryIds?.tmdb_id === item.id );