diff --git a/projects/common/models/compound-elements/likert-element.ts b/projects/common/models/compound-elements/likert-element.ts index 7ef09343c91a3272bef0afdf538a3e34d3d28488..8126c90767e083e1e91ff1ab29002c6ed7ab0963 100644 --- a/projects/common/models/compound-elements/likert-element.ts +++ b/projects/common/models/compound-elements/likert-element.ts @@ -26,6 +26,13 @@ export class LikertElement extends UIElement implements FontElement, SurfaceUIEl Object.assign(this, initFontElement(serializedElement)); Object.assign(this, initSurfaceElement(serializedElement)); + if (serializedElement?.rows) { + this.rows = []; + (serializedElement?.rows as LikertElementRow[]).forEach((row: LikertElementRow) => { + this.rows.push(new LikertElementRow(row)); + }); + } + this.height = serializedElement.height || 200; this.width = serializedElement.width || 400; this.backgroundColor = serializedElement.backgroundColor as string || 'transparent';