diff --git a/src/routes/series/index.jsx b/src/routes/series/index.jsx index 3e8d293..e54cecb 100644 --- a/src/routes/series/index.jsx +++ b/src/routes/series/index.jsx @@ -224,7 +224,7 @@ const SeriesTitlePage = () => { const actorTp = item.data.People.filter((itm) => itm.Type === "Actor"); setActors(actorTp); } - }); + }, [item.isSuccess]); if (item.isPending || similarItems.isPending) { return ( @@ -241,6 +241,7 @@ const SeriesTitlePage = () => { ); } + if (item.isSuccess && similarItems.isSuccess) { return (