diff --git a/projects/editor/src/app/services/unit.service.ts b/projects/editor/src/app/services/unit.service.ts index e3e39e30bab313d4c935a54df7a451ab075a9e3b..dbb6b6b1c0fb6879ef7592807c8c25842143ceb2 100644 --- a/projects/editor/src/app/services/unit.service.ts +++ b/projects/editor/src/app/services/unit.service.ts @@ -184,7 +184,7 @@ export class UnitService { private static freeUpIds(elements: UIElement[]): void { elements.forEach(element => { if (element.type === 'drop-list') { - element.value.foreach((value: DragNDropValueObject) => { + element.value.forEach((value: DragNDropValueObject) => { IdService.getInstance().removeId(value.id); }); }