diff --git a/project/src/controllers/BuildController.ts b/project/src/controllers/BuildController.ts index 498c818a..9d0a64cf 100644 --- a/project/src/controllers/BuildController.ts +++ b/project/src/controllers/BuildController.ts @@ -122,7 +122,9 @@ export class BuildController Items: request.Items, }; - const existingBuild = existingSavedEquipmentBuilds.find((x) => x.Name === request.Name); + const existingBuild = existingSavedEquipmentBuilds.find((build) => + build.Name === request.Name || build.Id === request.Id + ); if (existingBuild) { // Already exists, replace