Skip to content

Commit

Permalink
Use IDs.ShokoFile Instead of IDs.ID to Avoid Duplicate Key Issue When…
Browse files Browse the repository at this point in the history
… Importing Multiples.
  • Loading branch information
ElementalCrisis committed Oct 23, 2023
1 parent 5a8ac9a commit d7de346
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/dashboard/panels/RecentlyImported.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const RecentlyImported = () => {
<div className="shoko-scrollbar relative flex">
<TransitionDiv show={!showSeries} className="absolute flex">
{(episodes.data?.length ?? 0) > 0
? episodes.data?.map(item => <EpisodeDetails episode={item} key={item.IDs.ID} />)
? episodes.data?.map(item => <EpisodeDetails episode={item} key={item.IDs.ShokoFile} />)
: <div className="mt-4 flex w-full justify-center font-semibold">No Recently Imported Episodes!</div>}
</TransitionDiv>
<TransitionDiv show={showSeries} className="absolute flex">
Expand Down

0 comments on commit d7de346

Please sign in to comment.