inventory-slots #49
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user