mirror of
https://github.com/jeffvli/feishin.git
synced 2026-06-11 06:42:38 +02:00
fix(normalize): do not duplicate remixer when included in credit
This commit is contained in:
@@ -128,7 +128,12 @@ const getArtists = (
|
||||
});
|
||||
|
||||
if (participants?.['Remixer']) {
|
||||
result.push(...participants['Remixer']);
|
||||
const existingIds = new Set(result.map((artist) => artist.id));
|
||||
for (const participant of participants['Remixer']) {
|
||||
if (!existingIds.has(participant.id)) {
|
||||
result.push(participant);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user