From e112bd1ea35adad916a5d288c7d7123eccdfa1a3 Mon Sep 17 00:00:00 2001 From: rhenck <richard.henck@iqb.hu-berlin.de> Date: Fri, 3 Nov 2023 11:49:07 +0100 Subject: [PATCH] [editor] Fix section construction Gridsizes were accidentally changed from array to object. --- projects/common/models/section.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/projects/common/models/section.ts b/projects/common/models/section.ts index d888d1992..2769c4b02 100644 --- a/projects/common/models/section.ts +++ b/projects/common/models/section.ts @@ -37,8 +37,8 @@ export class Section { this.dynamicPositioning = section.dynamicPositioning; this.autoColumnSize = section.autoColumnSize; this.autoRowSize = section.autoRowSize; - this.gridColumnSizes = { ...section.gridColumnSizes }; - this.gridRowSizes = { ...section.gridRowSizes }; + this.gridColumnSizes = [...section.gridColumnSizes]; + this.gridRowSizes = [...section.gridRowSizes]; this.visibilityDelay = section.visibilityDelay; this.animatedVisibility = section.animatedVisibility; this.enableReHide = section.enableReHide; @@ -55,8 +55,8 @@ export class Section { if (section?.dynamicPositioning !== undefined) this.dynamicPositioning = section.dynamicPositioning; if (section?.autoColumnSize !== undefined) this.autoColumnSize = section.autoColumnSize; if (section?.autoRowSize !== undefined) this.autoRowSize = section.autoRowSize; - if (section?.gridColumnSizes !== undefined) this.gridColumnSizes = { ...section.gridColumnSizes }; - if (section?.gridRowSizes !== undefined) this.gridRowSizes = { ...section.gridRowSizes }; + if (section?.gridColumnSizes !== undefined) this.gridColumnSizes = [...section.gridColumnSizes]; + if (section?.gridRowSizes !== undefined) this.gridRowSizes = [...section.gridRowSizes]; if (section?.visibilityDelay !== undefined) this.visibilityDelay = section.visibilityDelay; if (section?.animatedVisibility !== undefined) this.animatedVisibility = section.animatedVisibility; if (section?.enableReHide !== undefined) this.enableReHide = section.enableReHide; -- GitLab