Skip to content

Commit

Permalink
Fix loaders in TmdbLinking page
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithmohan committed Sep 3, 2024
1 parent e3fcf71 commit 80aa637
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/collection/series/TmdbLinking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const TmdbLinking = () => {

// Overrides merged with episodeXrefs
const finalEpisodeXrefs = useMemo(() => {
if (!episodeXrefs || !seriesQuery.data) return {};
if (!episodeXrefs || !seriesQuery.data) return undefined;

const tempXrefs: Record<number, TmdbEpisodeXrefType[]> = { ...episodeXrefs };

Expand Down Expand Up @@ -381,7 +381,7 @@ const TmdbLinking = () => {

if (!episode && !episodesQuery.isFetchingNextPage) fetchNextPageDebounced();

const overrides = linkOverrides[episode.IDs.AniDB] ?? finalEpisodeXrefs[episode.IDs.AniDB] ?? [0];
const overrides = linkOverrides[episode.IDs.AniDB] ?? finalEpisodeXrefs?.[episode.IDs.AniDB] ?? [0];

return (
<div
Expand Down

0 comments on commit 80aa637

Please sign in to comment.