inventory-slots #49

Merged
sebastian merged 13 commits from inventory-slots into main 2024-05-11 15:36:10 +02:00
Showing only changes of commit b70aee9004 - Show all commits

View File

@ -29,7 +29,11 @@ export class InventorySlotCharacteristicEditorComponent implements OnInit{
ngOnInit() { ngOnInit() {
this.itemgroups.forEach(itemgroup => { this.itemgroups.forEach(itemgroup => {
this.availableCharacteristics = this.availableCharacteristics.concat(itemgroup.itemGroupCharacteristics); itemgroup.itemGroupCharacteristics.forEach(characteristic => {
if(!this.availableCharacteristics.includes(characteristic)) {
this.availableCharacteristics.push(characteristic)
}
})
}) })
this.datasource.data = this.inventorySlot!.slotCharacteristics; this.datasource.data = this.inventorySlot!.slotCharacteristics;
} }