We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f793cca + a94e0a8 commit a7577b0Copy full SHA for a7577b0
src/sdk/PnP.Core/Model/SharePoint/Pages/Internal/PageWebPart.cs
@@ -287,7 +287,7 @@ public override string ToHtml(float controlIndex)
287
controlData.ZoneGroupMetadata = new SectionZoneGroupMetadata()
288
{
289
// Set section type to 1 if it was not set (when new sections are added via code)
290
- Type = (Section as CanvasSection).SectionType,
+ Type = (Section as CanvasSection).SectionType == 0 ? 1 : (Section as CanvasSection).SectionType,
291
DisplayName = Section.DisplayName,
292
IsExpanded = Section.IsExpanded,
293
ShowDividerLine = Section.ShowDividerLine,
0 commit comments