mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 13:00:13 +02:00
fix(normalize): do not duplicate remixer when included in credit
This commit is contained in:
@@ -50,7 +50,12 @@ const getArtistList = (
|
||||
});
|
||||
|
||||
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