From 8c0e7f7db8af8b7b9009013ea71872440a938189 Mon Sep 17 00:00:00 2001 From: Fredrik Burmester Date: Thu, 29 Aug 2024 23:03:51 +0200 Subject: [PATCH] fix: item page for item not associated with movie/tv-show not loading --- components/ItemContent.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/ItemContent.tsx b/components/ItemContent.tsx index 9491c5cd..2722e012 100644 --- a/components/ItemContent.tsx +++ b/components/ItemContent.tsx @@ -102,7 +102,7 @@ export const ItemContent: React.FC<{ id: string }> = React.memo(({ id }) => { }); }; - const headerHeightRef = useRef(0); + const headerHeightRef = useRef(400); const { data: item, @@ -166,6 +166,7 @@ export const ItemContent: React.FC<{ id: string }> = React.memo(({ id }) => { } if (item?.Type === "Episode") headerHeightRef.current = 400; else if (item?.Type === "Movie") headerHeightRef.current = 500; + else headerHeightRef.current = 400; }, [item]); const { data: sessionData } = useQuery({