Fix saveEquipmentBuild() not correctly setting root id to first items _id

This commit is contained in:
Dev 2024-01-12 17:18:10 +00:00
parent 9b1b8f9f10
commit eb961b3e11

View File

@ -128,7 +128,7 @@ export class BuildController
Id: request.Id, Id: request.Id,
Name: request.Name, Name: request.Name,
BuildType: EquipmentBuildType.CUSTOM, BuildType: EquipmentBuildType.CUSTOM,
Root: request.Root, Root: request.Items[0]._id,
Items: request.Items, Items: request.Items,
}; };