mirror of
https://github.com/thepeacockproject/Peacock
synced 2024-11-22 22:12:45 +01:00
Backport GameChangerReferences duplication fix from Evergreen branch
Signed-off-by: Reece Dunham <me@rdil.rocks>
This commit is contained in:
parent
d0ff3d5f6d
commit
6b1f37f149
@ -129,9 +129,9 @@ contractRoutingRouter.post(
|
||||
delete gameChanger.ObjectivesCategory
|
||||
|
||||
if (
|
||||
contractData.Data.GameChangerReferences.includes(
|
||||
gameChanger,
|
||||
)
|
||||
contractData.Data.GameChangerReferences.filter(
|
||||
(value) => value.Id === gameChangerId,
|
||||
).length !== 0
|
||||
) {
|
||||
continue
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user