From 904ef10ac23cffec152e6ac78a711a342d9adda0 Mon Sep 17 00:00:00 2001
From: rhenck <richard.henck@iqb.hu-berlin.de>
Date: Fri, 22 Oct 2021 12:53:00 +0200
Subject: [PATCH] [editor] Allow all kinds of arrays remove-option on
 properties panel

---
 .../properties-panel/element-properties.component.ts          | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/projects/editor/src/app/unit-view/page-view/properties-panel/element-properties.component.ts b/projects/editor/src/app/unit-view/page-view/properties-panel/element-properties.component.ts
index cdac6dc6c..7d0541e0b 100644
--- a/projects/editor/src/app/unit-view/page-view/properties-panel/element-properties.component.ts
+++ b/projects/editor/src/app/unit-view/page-view/properties-panel/element-properties.component.ts
@@ -114,8 +114,8 @@ export class ElementPropertiesComponent implements OnInit, OnDestroy {
     this.updateModel(property, event.container.data);
   }
 
-  removeOption(property: string, option: string): void {
-    const valueList: string[] = this.combinedProperties[property] as string[];
+  removeOption(property: string, option: any): void {
+    const valueList: any[] = this.combinedProperties[property] as any[];
     valueList.splice(valueList.indexOf(option), 1);
     this.updateModel(property, valueList);
   }
-- 
GitLab