mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2026-01-04 21:58:39 -05:00
fix(frontend): check if swr is validating to determine if we should fetch new data
fixes #719
This commit is contained in:
@@ -38,7 +38,7 @@ const ListView: React.FC<ListViewProps> = ({
|
||||
</div>
|
||||
)}
|
||||
<ul className="cardList">
|
||||
{items?.map((title) => {
|
||||
{items?.map((title, index) => {
|
||||
let titleCard: React.ReactNode;
|
||||
|
||||
switch (title.mediaType) {
|
||||
@@ -90,7 +90,7 @@ const ListView: React.FC<ListViewProps> = ({
|
||||
break;
|
||||
}
|
||||
|
||||
return <li key={title.id}>{titleCard}</li>;
|
||||
return <li key={`${title.id}-${index}`}>{titleCard}</li>;
|
||||
})}
|
||||
{isLoading &&
|
||||
!isReachingEnd &&
|
||||
|
||||
Reference in New Issue
Block a user