diff --git a/projects/common/models/section.ts b/projects/common/models/section.ts index d888d1992cb6541a088620876619c7c8d81603ec..2769c4b02e8e4e7f610670a17075868dfb844236 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;