From b1a2489435ed51f25d25ccf8d1b8be516b49ecfc Mon Sep 17 00:00:00 2001 From: rhenck <richard.henck@iqb.hu-berlin.de> Date: Mon, 1 Aug 2022 20:44:20 +0200 Subject: [PATCH] [editor] Fix radio-group-image duplication #283 --- .../elements/input-elements/radio-button-group-complex.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/common/models/elements/input-elements/radio-button-group-complex.ts b/projects/common/models/elements/input-elements/radio-button-group-complex.ts index 18a5c1be4..1b1180f6f 100644 --- a/projects/common/models/elements/input-elements/radio-button-group-complex.ts +++ b/projects/common/models/elements/input-elements/radio-button-group-complex.ts @@ -17,7 +17,7 @@ export class RadioButtonGroupComplexElement extends InputElement implements Posi constructor(element: Partial<RadioButtonGroupComplexElement>, ...args: unknown[]) { super({ height: 100, ...element }, ...args); - if (element.columns) this.columns = element.columns; + if (element.columns) this.columns = [...element.columns]; this.position = ElementFactory.initPositionProps({ marginBottom: 40, ...element.position }); this.styling = { ...ElementFactory.initStylingProps({ backgroundColor: 'transparent', ...element.styling }) -- GitLab