Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Maybe duplicates are fixed this time?
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent 19a5f65 commit 7c0bc0d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/routes/mod-queue.tsx
Expand Up @@ -184,7 +184,11 @@ export default function () {
) {
cardType = itemType;
// Prevent duplicate items
} else if (entryData.indexOf(entry) === 1 && queue_type === cardType)
} else if (
entryData.indexOf(entry) > 0 &&
queue_type === cardType &&
entryData.filter((d) => d.id === entry.id).length > 1
)
continue;

switch (cardType) {
Expand Down

0 comments on commit 7c0bc0d

Please sign in to comment.