Skip to content

Commit

Permalink
chore: remove key from media screen routing
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristiaanScheermeijer committed Sep 19, 2024
1 parent 29855b9 commit 7d594e5
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ mediaScreenMap.register(MediaSeries, (item) => !!item && isLegacySeriesFlow(item
const MediaScreenRouter = () => {
const params = useParams();
const id = params.id || '';
const { isFetching, error, data } = useMedia(id);
const { isLoading, isFetching, error, data } = useMedia(id);
const { t } = useTranslation('error');

if (isFetching) {
if (isLoading) {
return <Loading />;
}

Expand All @@ -50,7 +50,7 @@ const MediaScreenRouter = () => {
const MediaScreen = mediaScreenMap.getScreen(data);

return (
<Fade key={id} open>
<Fade open>
<MediaScreen data={data} isLoading={isFetching} />
</Fade>
);
Expand Down

0 comments on commit 7d594e5

Please sign in to comment.