From b3ce39ca2b8cf77338e2473e6262d27c1c7a1838 Mon Sep 17 00:00:00 2001
From: rhenck <richard.henck@iqb.hu-berlin.de>
Date: Tue, 9 Nov 2021 12:59:17 +0100
Subject: [PATCH] [editor] Fix DnD element connectedTo property change

Does no longer change the options instead of the connectedTo array. I
reworked some logic that before only changed the options to now be able
to handle any kind of string list.
---
 projects/editor/src/app/unit.service.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/projects/editor/src/app/unit.service.ts b/projects/editor/src/app/unit.service.ts
index e0b95f66b..6da42f9e4 100644
--- a/projects/editor/src/app/unit.service.ts
+++ b/projects/editor/src/app/unit.service.ts
@@ -226,7 +226,7 @@ export class UnitService {
       .subscribe((result: string) => {
         if (result) {
           oldOptions[optionIndex] = result;
-          this.updateElementProperty(this.selectionService.getSelectedElements(), 'options', oldOptions);
+          this.updateElementProperty(this.selectionService.getSelectedElements(), property, oldOptions);
         }
       });
   }
-- 
GitLab