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
|
delete gameChanger.ObjectivesCategory
|
||||||
|
|
||||||
if (
|
if (
|
||||||
contractData.Data.GameChangerReferences.includes(
|
contractData.Data.GameChangerReferences.filter(
|
||||||
gameChanger,
|
(value) => value.Id === gameChangerId,
|
||||||
)
|
).length !== 0
|
||||||
) {
|
) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user