From 8aac68e2bb8adadb4a45835a314afac38131a6e4 Mon Sep 17 00:00:00 2001 From: rhenck <richard.henck@iqb.hu-berlin.de> Date: Wed, 1 Dec 2021 11:35:01 +0100 Subject: [PATCH] Fix syntax error in forEach --- projects/editor/src/app/services/unit.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/editor/src/app/services/unit.service.ts b/projects/editor/src/app/services/unit.service.ts index e3e39e30b..dbb6b6b1c 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); }); } -- GitLab